Share via


ManagementGroup.GetUnitMonitorType Method

Definition

Retrieves a defined unit monitor type.

Overloads

GetUnitMonitorType(Guid)
Obsolete.

Retrieves a single unit monitor type defined in this management group.

GetUnitMonitorType(String, ManagementPack)
Obsolete.

Retrieves a single unit monitor type defined in this management group.

GetUnitMonitorType(Guid)

Caution

Please use Monitoring.GetUnitMonitorType()

Retrieves a single unit monitor type defined in this management group.

public:
 Microsoft::EnterpriseManagement::Configuration::UnitMonitorType ^ GetUnitMonitorType(Guid id);
[System.Obsolete("Please use Monitoring.GetUnitMonitorType()")]
public Microsoft.EnterpriseManagement.Configuration.UnitMonitorType GetUnitMonitorType (Guid id);
member this.GetUnitMonitorType : Guid -> Microsoft.EnterpriseManagement.Configuration.UnitMonitorType
Public Function GetUnitMonitorType (id As Guid) As UnitMonitorType

Parameters

id
Guid

The id of the unit monitor type.

Returns

An instantiated UnitMonitorType.

Attributes

Exceptions

A UnitMonitorType with that id was not found.

Applies to

GetUnitMonitorType(String, ManagementPack)

Caution

Please use Monitoring.GetUnitMonitorType()

Retrieves a single unit monitor type defined in this management group.

public:
 Microsoft::EnterpriseManagement::Configuration::UnitMonitorType ^ GetUnitMonitorType(System::String ^ typeName, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
[System.Obsolete("Please use Monitoring.GetUnitMonitorType()")]
public Microsoft.EnterpriseManagement.Configuration.UnitMonitorType GetUnitMonitorType (string typeName, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
member this.GetUnitMonitorType : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.UnitMonitorType
Public Function GetUnitMonitorType (typeName As String, managementPack As ManagementPack) As UnitMonitorType

Parameters

typeName
String

The unit monitor type name.

managementPack
ManagementPack

The management pack to search for the type in.

Returns

An instantiated UnitMonitorType.

Attributes

Exceptions

A UnitMonitorType with that name was not found.

typeName is null.

typeName.Length is 0.

Applies to