Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

QualifierDataCollection Class

Represents a collection of QualifierData objects.

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

System.Object
   System.Management.QualifierDataCollection

[Visual Basic]
Public Class QualifierDataCollection
   Implements ICollection, IEnumerable
[C#]
public class QualifierDataCollection : ICollection, IEnumerable
[C++]
public __gc class QualifierDataCollection : public ICollection,
   IEnumerable
[JScript]
public class QualifierDataCollection implements ICollection,
   IEnumerable

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 list all qualifiers including amended 
// qualifiers of a ManagementClass object. 
class Sample_QualifierDataCollection 
{ 
    public static int Main(string[] args) { 
        ManagementClass diskClass = new ManagementClass("Win32_LogicalDisk"); 
        diskClass.Options.UseAmendedQualifiers = true;
        QualifierDataCollection qualifierCollection = diskClass.Qualifiers;
        foreach (QualifierData q in qualifierCollection) {
            Console.WriteLine(q.Name + " = " + q.Value);
        }
        return 0;
    }
}
   
[Visual Basic] 
Imports System
                  Imports System.Management
                  ' This sample demonstrates how to list all qualifiers including amended
                  ' qualifiers of a ManagementClass object.
                  Class Sample_QualifierDataCollection
                  Overloads Public Shared Function Main(args() As String) As Integer
                  Dim diskClass As New ManagementClass("Win32_LogicalDisk")
                  diskClass.Options.UseAmendedQualifiers = true
                  Dim qualifierCollection As QualifierDataCollection = diskClass.Qualifiers
                  Dim q As QualifierData
                  For Each q In qualifierCollection
                  Console.WriteLine(q.Name & " = " & q.Value)
                  Next q
                  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

QualifierDataCollection Members | System.Management Namespace

Show:
© 2014 Microsoft. All rights reserved.