MonitoringObject.GetMonitoringPropertyValue(MonitoringClassProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use this[ManagementPackClassProperty].Value
This method returns an object corresponding to the provided MonitoringObjectProperty.
public:
System::Object ^ GetMonitoringPropertyValue(Microsoft::EnterpriseManagement::Configuration::MonitoringClassProperty ^ property);
[System.Obsolete("Use this[ManagementPackClassProperty].Value")]
public object GetMonitoringPropertyValue (Microsoft.EnterpriseManagement.Configuration.MonitoringClassProperty property);
member this.GetMonitoringPropertyValue : Microsoft.EnterpriseManagement.Configuration.MonitoringClassProperty -> obj
Public Function GetMonitoringPropertyValue (property As MonitoringClassProperty) As Object
Parameters
- property
- MonitoringClassProperty
The property to retrieve the value for.
Returns
The value of the property.
- Attributes
Exceptions
property is null.
The given MonitoringClassProperty was not found in the monitoring object.
Examples
For a code example that uses this method, see How to Display Information about a Monitoring Object.