ManagementProbeAttribute Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Namespace: System.Management
Assembly: System.Core (in System.Core.dll)
Exposes a property or field as a read-only property or field. The property or field must be public.
Assembly: System.Core (in System.Core.dll)
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
System.Attribute
System.Management.ManagementMemberAttribute
System.Management.ManagementProbeAttribute
Show: