ManagementBaseObject.GetQualifierValue Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the value of the specified qualifier.

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

public object GetQualifierValue(
	string qualifierName
)

Parameters

qualifierName
Type: System.String

The name of the qualifier of interest.

Return Value

Type: System.Object

The value of the specified qualifier.

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 displays the Win32_Process class description by using the GetQualifierValue method. For more information on the Win32_Process class, see the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

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;

        Console.WriteLine(
            processClass.GetQualifierValue(
            "Description"));
    }
}

.NET Framework
Available since 1.1
Return to top
Show: