ManagementConfigurationAttribute Class

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

Defines a property or field to be configurable in an automated class. A property that is marked with the ManagementConfiguration attribute is exposed to WMI as a readable and writable property.

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

[AttributeUsageAttribute(AttributeTargets::Property|AttributeTargets::Field, AllowMultiple = false)]
public ref class ManagementConfigurationAttribute sealed : public ManagementMemberAttribute
Not applicable.

The following example shows how to use the ManagementConfiguration attribute to mark a property. This property is exposed to WMI.

[C#]

// Use the ManagementConfiguration attribute to specify that a property
// is a read/write property in the provider. Consumers will be
// able to get and set this property value through WMI.
[ManagementConfiguration]
public double ReadableWritableProperty
{
    get { return this.propertyValue; }
    set { this.propertyValue = value; }
}

System.Object
  System.Attribute
    System.Management.ManagementMemberAttribute
      System.Management.ManagementConfigurationAttribute

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: