The following example shows how to use the ManagementProbe attribute to indicate that a field represents a read-only WMI property.
[ManagementProbe]
string count;
The next example shows how to use the ManagementProbe attribute to mark a property.
[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 ReadOnlyProperty
{
get { return this.propertyValue; }
}