MonitoringClass.GetMonitoringProperty Method

Definition

Retrieves the monitoring property for this monitoring class.

Overloads

GetMonitoringProperty(Guid)
Obsolete.

Gets a property based on the id of that property.

GetMonitoringProperty(String)
Obsolete.

Gets a property based on the name of that property.

GetMonitoringProperty(Guid)

Caution

Please use GetProperty instead

Gets a property based on the id of that property.

public:
 Microsoft::EnterpriseManagement::Configuration::MonitoringClassProperty ^ GetMonitoringProperty(Guid id);
[System.Obsolete("Please use GetProperty instead")]
public Microsoft.EnterpriseManagement.Configuration.MonitoringClassProperty GetMonitoringProperty (Guid id);
member this.GetMonitoringProperty : Guid -> Microsoft.EnterpriseManagement.Configuration.MonitoringClassProperty
Public Function GetMonitoringProperty (id As Guid) As MonitoringClassProperty

Parameters

id
Guid

The id of the property.

Returns

The MonitoringClassProperty corresponding to the id.

Attributes

Exceptions

A MonitoringClassProperty with that id was not found in this type.

Applies to

GetMonitoringProperty(String)

Caution

Please use GetProperty instead

Gets a property based on the name of that property.

public:
 Microsoft::EnterpriseManagement::Configuration::MonitoringClassProperty ^ GetMonitoringProperty(System::String ^ name);
[System.Obsolete("Please use GetProperty instead")]
public Microsoft.EnterpriseManagement.Configuration.MonitoringClassProperty GetMonitoringProperty (string name);
member this.GetMonitoringProperty : string -> Microsoft.EnterpriseManagement.Configuration.MonitoringClassProperty
Public Function GetMonitoringProperty (name As String) As MonitoringClassProperty

Parameters

name
String

The name of the property.

Returns

The MonitoringClassProperty corresponding to the name.

Attributes

Exceptions

name is null.

name.Length is 0.

A MonitoringClassProperty with that name was not found in this type.

Examples

For an example, see How to Install, Remove, or Repair an Agent.

Applies to