Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ManagementQualifierAttribute Class

The ManagementQualifier attribute contains additional WMI provider-related information about an associated WMI class, instance, property, field or method.

Namespace:  System.Management.Instrumentation
Assembly:  System.Management.Instrumentation (in System.Management.Instrumentation.dll)
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.All, AllowMultiple := True)> _
Public NotInheritable Class ManagementQualifierAttribute _
    Inherits Attribute
Visual Basic (Usage)
Dim instance As ManagementQualifierAttribute
C#
[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = true)]
public sealed class ManagementQualifierAttribute : Attribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::All, AllowMultiple = true)]
public ref class ManagementQualifierAttribute sealed : public Attribute
JScript
public final class ManagementQualifierAttribute extends Attribute

Qualifiers are name/value pairs used by the WMI infrastructure. Most of the necessary WMI qualifiers are automatically generated by the WMI.NET Provider Extensions infrastructure. Many of the other attributes cause the generation of WMI qualifiers. However, this attribute lets you manually associate additional qualifiers should you need to do so.

To learn more about this topic, see WMI Qualifiers in the WMI SDK on MSDN online.

The following example demonstrates using the ManagementQualifier attribute to indicate that a class implements a WMI association class. In this case, the qualifier has a DisableOverride flavor that specifies that the effect of the qualifier cannot be overridden in subclasses.

[ManagementQualifier("Association", Flavor = ManagementQualifierFlavors.DisableOverride)]
public class AssociationSample
{
}
System..::.Object
  System..::.Attribute
    System.Management.Instrumentation..::.ManagementQualifierAttribute
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker