Share via


ManagementGroup.GetMonitoringClass Method

Definition

Retrieves a monitoring class.

Overloads

GetMonitoringClass(SystemClass)
Obsolete.

Retrieves a single monitoring class defined in this management group by the well-known system types enumeration.

GetMonitoringClass(Guid)
Obsolete.

Retrieves a single monitoring class defined in this management group.

GetMonitoringClass(String, ManagementPack)
Obsolete.

Retrieves a single class defined in this management group.

GetMonitoringClass(SystemClass)

Caution

Please use EntityTypes.EntityType.GetClass()

Retrieves a single monitoring class defined in this management group by the well-known system types enumeration.

public:
 Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ GetMonitoringClass(Microsoft::EnterpriseManagement::Configuration::SystemClass ^ monitoringClass);
[System.Obsolete("Please use EntityTypes.EntityType.GetClass()")]
public Microsoft.EnterpriseManagement.Configuration.MonitoringClass GetMonitoringClass (Microsoft.EnterpriseManagement.Configuration.SystemClass monitoringClass);
member this.GetMonitoringClass : Microsoft.EnterpriseManagement.Configuration.SystemClass -> Microsoft.EnterpriseManagement.Configuration.MonitoringClass
Public Function GetMonitoringClass (monitoringClass As SystemClass) As MonitoringClass

Parameters

monitoringClass
SystemClass

The class to retrieve.

Returns

An instantiated MonitoringClass.

Attributes

Exceptions

A MonitoringClass matching that enumeration was not found.

Examples

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

Applies to

GetMonitoringClass(Guid)

Caution

Please use EntityTypes.EntityType.GetClass()

Retrieves a single monitoring class defined in this management group.

public:
 Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ GetMonitoringClass(Guid id);
[System.Obsolete("Please use EntityTypes.EntityType.GetClass()")]
public Microsoft.EnterpriseManagement.Configuration.MonitoringClass GetMonitoringClass (Guid id);
member this.GetMonitoringClass : Guid -> Microsoft.EnterpriseManagement.Configuration.MonitoringClass
Public Function GetMonitoringClass (id As Guid) As MonitoringClass

Parameters

id
Guid

The id of the monitoring class.

Returns

An instantiated MonitoringClass.

Attributes

Exceptions

A MonitoringClass with that id was not found.

Applies to

GetMonitoringClass(String, ManagementPack)

Caution

Please use EntityTypes.EntityType.GetClass()

Retrieves a single class defined in this management group.

public:
 Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ GetMonitoringClass(System::String ^ className, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
[System.Obsolete("Please use EntityTypes.EntityType.GetClass()")]
public Microsoft.EnterpriseManagement.Configuration.MonitoringClass GetMonitoringClass (string className, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
member this.GetMonitoringClass : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.MonitoringClass
Public Function GetMonitoringClass (className As String, managementPack As ManagementPack) As MonitoringClass

Parameters

className
String

The fully qualified class name.

managementPack
ManagementPack

The management pack the type is in.

Returns

An instantiated MonitoringClass.

Attributes

Exceptions

A MonitoringClass with that name was not found in the given management pack.

className or managementPack is null.

className.Length is 0.

Applies to