IManagementPackManagement.GetManagementPack 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 ManagementPack object for the specified management pack.
Overloads
GetManagementPack(String, String, Version) |
Searches for a specific management pack object identified by the supplied name, public key token, and version values. |
GetManagementPack(Guid) |
Gets a management pack object by unique identifier. |
GetManagementPack(SystemManagementPack) |
Gets a management pack object for a well-known system management pack. |
GetManagementPack(String, String, Version)
Searches for a specific management pack object identified by the supplied name, public key token, and version values.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ GetManagementPack(System::String ^ name, System::String ^ keytoken, Version ^ version);
public Microsoft.EnterpriseManagement.Configuration.ManagementPack GetManagementPack (string name, string keytoken, Version version);
abstract member GetManagementPack : string * string * Version -> Microsoft.EnterpriseManagement.Configuration.ManagementPack
Public Function GetManagementPack (name As String, keytoken As String, version As Version) As ManagementPack
Parameters
- name
- String
The name of the management pack.
- keytoken
- String
The public key token of the sealed management pack. Passing a null value for this parameter returns the unsealed management pack, if it exists.
- version
- Version
Specifies the version for the returned management pack.
Returns
The management pack.
Exceptions
The name
parameter is a null reference (Nothing in Visual Basic) or equals Empty.
The ManagementPack type does not exist based on all parameters.
Applies to
GetManagementPack(Guid)
Gets a management pack object by unique identifier.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ GetManagementPack(Guid id);
public Microsoft.EnterpriseManagement.Configuration.ManagementPack GetManagementPack (Guid id);
abstract member GetManagementPack : Guid -> Microsoft.EnterpriseManagement.Configuration.ManagementPack
Public Function GetManagementPack (id As Guid) As ManagementPack
Parameters
- id
- Guid
The unique identifier of a management pack.
Returns
The management pack.
Exceptions
The ManagementPack type that is identified by the id
parameter does not exist.
Applies to
GetManagementPack(SystemManagementPack)
Gets a management pack object for a well-known system management pack.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ GetManagementPack(Microsoft::EnterpriseManagement::Configuration::SystemManagementPack managementPack);
public Microsoft.EnterpriseManagement.Configuration.ManagementPack GetManagementPack (Microsoft.EnterpriseManagement.Configuration.SystemManagementPack managementPack);
abstract member GetManagementPack : Microsoft.EnterpriseManagement.Configuration.SystemManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPack
Public Function GetManagementPack (managementPack As SystemManagementPack) As ManagementPack
Parameters
- managementPack
- SystemManagementPack
One of the system management pack enumeration values.
Returns
The management pack.
Exceptions
The well-known management pack that is identified by the id
parameter does not exist.
The SystemManagementPack type that was identified by the managementPack
parameter was not one of the supported values.
Applies to
Thread Safety
These methods are thread safe.