This documentation is archived and is not being maintained.

ManagementBaseObject.GetPropertyQualifierValue Method

Returns the value of the specified property qualifier.

Namespace: System.Management
Assembly: System.Management (in

public Object GetPropertyQualifierValue (
	string propertyName,
	string qualifierName
public Object GetPropertyQualifierValue (
	String propertyName, 
	String qualifierName
public function GetPropertyQualifierValue (
	propertyName : String, 
	qualifierName : String
) : Object
Not applicable.



The name of the property to which the qualifier belongs.


The name of the property qualifier of interest.

Return Value

The value of the specified qualifier.

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

The following example uses the GetPropertyQualifierValue method to display the value of the Description qualifier for each of the properties in the Win32_Process class. For more information on the Win32_Process class, see the Windows Management Instrumentation documentation in the MSDN Library at

using System;
using System.Management;

public class Sample 
    public static void Main() 

        // Get the WMI class
        ManagementClass processClass = 
            new ManagementClass("Win32_Process");
        processClass.Options.UseAmendedQualifiers = true;

        // Get the properties in the class
        PropertyDataCollection properties =

        // display the properties
        Console.WriteLine("Win32_Process Property Names: ");
        foreach (PropertyData property in properties)

            foreach (QualifierData q in property.Qualifiers)
                        property.Name, q.Name));



Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0