ManagementProbeAttribute Class

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

Exposes a property or field as a read-only property or field. The property or field must be public.

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

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

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

[C#]

// Use the ManagementProbe attribute to specify that a property
// is a read-only property in the provider. Consumers will be
// able to get this property value through WMI.
[ManagementProbe]
public int ReadableProperty
{
    get { return this.propertyValue; }
}

System.Object
  System.Attribute
    System.Management.ManagementMemberAttribute
      System.Management.ManagementProbeAttribute

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: