IEntityTypeManagement.GetClass 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.
Gets a management pack class. A class is defined in a management pack under the ClassTypes
element, which is under the EntityTypes
element.
Overloads
GetClass(SystemClass) |
Gets a management pack class from the well-known system class value. |
GetClass(Guid) |
Gets a management pack class by using an identifier. |
GetClass(String, ManagementPack) |
Gets a management pack class, by name, from a specific management pack. |
GetClass(SystemClass)
Gets a management pack class from the well-known system class value.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ GetClass(Microsoft::EnterpriseManagement::Configuration::SystemClass ^ ManagementPackClass);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackClass GetClass (Microsoft.EnterpriseManagement.Configuration.SystemClass ManagementPackClass);
abstract member GetClass : Microsoft.EnterpriseManagement.Configuration.SystemClass -> Microsoft.EnterpriseManagement.Configuration.ManagementPackClass
Public Function GetClass (ManagementPackClass As SystemClass) As ManagementPackClass
Parameters
- ManagementPackClass
- SystemClass
The well-known system class value.
Returns
The management pack class.
Exceptions
The ManagementPackClass
parameter is a null reference (Nothing in Visual Basic).
The class identified by the ManagementPackClass
parameter was not one of the supported values.
Applies to
GetClass(Guid)
Gets a management pack class by using an identifier.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ GetClass(Guid id);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackClass GetClass (Guid id);
abstract member GetClass : Guid -> Microsoft.EnterpriseManagement.Configuration.ManagementPackClass
Public Function GetClass (id As Guid) As ManagementPackClass
Parameters
- id
- Guid
The unique identifier of the class.
Returns
The management pack class.
Exceptions
The ManagementPackCategory type that is identified by the id
parameter was not found.
Applies to
GetClass(String, ManagementPack)
Gets a management pack class, by name, from a specific management pack.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ GetClass(System::String ^ className, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackClass GetClass (string className, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
abstract member GetClass : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPackClass
Public Function GetClass (className As String, managementPack As ManagementPack) As ManagementPackClass
Parameters
- className
- String
The class name.
- managementPack
- ManagementPack
The management pack that contains the class to be returned.
Returns
The management pack class.
Exceptions
The className
parameter is a null reference (Nothing in Visual Basic) or the managementPack
parameter is a null reference (Nothing in Visual Basic).
The ManagementPackClass identified by the className
parameter was not found.
The className
parameter is equal to Empty.
Applies to
Thread Safety
These methods are thread safe.