ManagementEntityAttribute Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Defines an attribute on a class that is used to indicate that the class provides management information exposed through a WMI provider.

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

[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = false)]
public ref class ManagementEntityAttribute sealed : public Attribute
Not applicable.

The following example shows how to use the ManagementEntity attribute to mark a class.

// Use the ManagementEntity attribute on the class to specify that this // class contains management information that is available from
// provider.
    
    [ManagementEntity(Name = "MortgageCalc")]
    public class MortgageCalcWMIProvider
    {
    }        

System.Object
  System.Attribute
    System.Management.ManagementEntityAttribute

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 Server 2003, Windows XP SP2, Windows Vista

The .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.5
Show: