Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
QualifierData Class
Collapse the table of content
Expand the table of content

QualifierData Class

Contains information about a WMI qualifier.

For a list of all members of this type, see QualifierData Members.

System.Object
   System.Management.QualifierData

[Visual Basic]
Public Class QualifierData
[C#]
public class QualifierData
[C++]
public __gc class QualifierData
[JScript]
public class QualifierData

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Example

[C#] 
using System;
using System.Management;

// This sample demonstrates how to enumerate qualifiers
// of a ManagementClass object.
class Sample_QualifierData
{
    public static int Main(string[] args) {
        ManagementClass diskClass = new ManagementClass("Win32_LogicalDisk");
        diskClass.Options.UseAmendedQualifiers = true;
        QualifierData diskQualifier = diskClass.Qualifiers["Description"];
        Console.WriteLine(diskQualifier.Name + " = " + diskQualifier.Value);
        return 0;
    }
}
   
[Visual Basic] 
Imports System
Imports System.Management

' This sample demonstrates how to enumerate qualifiers
' of a ManagementClass object.
Class Sample_QualifierData
    Overloads Public Shared Function Main(args() As String) As Integer
        Dim diskClass As New ManagementClass("win32_logicaldisk")
        diskClass.Options.UseAmendedQualifiers = True
        Dim diskQualifier As QualifierData = diskClass.Qualifiers("Description")
        Console.WriteLine(diskQualifier.Name + " = " + diskQualifier.Value)
        Return 0
    End Function
End Class
   

[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Management

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

QualifierData Members | System.Management Namespace

Show:
© 2015 Microsoft