Share via


MonitoringObject.GetMonitoringPropertyValue(MonitoringClassProperty) Method

Definition

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.

Applies to