QualifierDataCollection Class
Represents a collection of QualifierData objects.
Namespace: System.Management
Assembly: System.Management (in System.Management.dll)
The QualifierDataCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of QualifierData objects in the QualifierDataCollection. |
![]() | IsSynchronized | Gets a value indicating whether the object is synchronized. |
![]() | Item | Gets the specified QualifierData from the QualifierDataCollection. |
![]() | SyncRoot | Gets the object to be used for synchronization. |
| Name | Description | |
|---|---|---|
![]() | Add(String, Object) | Adds a QualifierData to the QualifierDataCollection. This overload specifies the qualifier name and value. |
![]() | Add(String, Object, Boolean, Boolean, Boolean, Boolean) | Adds a QualifierData to the QualifierDataCollection. This overload specifies all property values for a QualifierData. |
![]() | CopyTo(Array, Int32) | Copies the QualifierDataCollection into an array. |
![]() | CopyTo(QualifierData[], Int32) | Copies the QualifierDataCollection into a specialized QualifierData array. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator for the QualifierDataCollection. This method is strongly typed. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes a QualifierData from the QualifierDataCollection by name. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.GetEnumerator | Returns an IEnumerator that iterates through the QualifierDataCollection. |
The following example lists qualifier information about the Win32_Service class using the QualifierData class. For more information about Win32_Service, 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 mClass = new ManagementClass("Win32_Service"); mClass.Options.UseAmendedQualifiers = true; // Get the Qualifiers for the class QualifierDataCollection qualifiers = mClass.Qualifiers; // display the Qualifier names Console.WriteLine(mClass.ClassPath.ClassName + " Qualifiers: "); foreach (QualifierData q in qualifiers) { Console.WriteLine(q.Name); } Console.WriteLine(); Console.WriteLine("Class Description: "); Console.WriteLine( mClass.Qualifiers["Description"].Value); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
