Uređivanje

Dijeli putem


ManagementBaseObject.GetQualifierValue(String) Method

Definition

Gets the value of the specified qualifier.

public:
 System::Object ^ GetQualifierValue(System::String ^ qualifierName);
public object GetQualifierValue (string qualifierName);
member this.GetQualifierValue : string -> obj
Public Function GetQualifierValue (qualifierName As String) As Object

Parameters

qualifierName
String

The name of the qualifier of interest.

Returns

The value of the specified qualifier.

Examples

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.

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"));
    }
}
Imports System.Management

Class Sample
    Public Overloads Shared Function _
        Main(ByVal args() As String) As Integer

        ' Get the WMI class
        Dim processClass As New ManagementClass( _
            "Win32_Process")
        processClass.Options.UseAmendedQualifiers = True

        Console.WriteLine( _
            processClass.GetQualifierValue( _
            "Description"))

    End Function
End Class

Remarks

.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.

Applies to