ManagementGroup.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.
Retrieves a management pack.
Overloads
GetManagementPack(SystemManagementPack) |
Obsolete.
Retrieves a single management pack defined in this management group by the well-known system management packs enumeration. |
GetManagementPack(Guid) |
Obsolete.
Gets the management pack with the given id. |
GetManagementPack(SystemManagementPack)
Caution
Please use ManagementPacks.GetManagementPack()
Retrieves a single management pack defined in this management group by the well-known system management packs enumeration.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ GetManagementPack(Microsoft::EnterpriseManagement::Configuration::SystemManagementPack managementPack);
[System.Obsolete("Please use ManagementPacks.GetManagementPack()")]
public Microsoft.EnterpriseManagement.Configuration.ManagementPack GetManagementPack (Microsoft.EnterpriseManagement.Configuration.SystemManagementPack managementPack);
override this.GetManagementPack : Microsoft.EnterpriseManagement.Configuration.SystemManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPack
Public Function GetManagementPack (managementPack As SystemManagementPack) As ManagementPack
Parameters
- managementPack
- SystemManagementPack
The management pack to retrieve.
Returns
An instantiated ManagementPack.
- Attributes
Exceptions
A ManagementPack matching that enumeration was not found.
Applies to
GetManagementPack(Guid)
Caution
Please use ManagementPacks.GetManagementPack()
Gets the management pack with the given id.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ GetManagementPack(Guid id);
[System.Obsolete("Please use ManagementPacks.GetManagementPack()")]
public Microsoft.EnterpriseManagement.Configuration.ManagementPack GetManagementPack (Guid id);
override this.GetManagementPack : Guid -> Microsoft.EnterpriseManagement.Configuration.ManagementPack
Public Function GetManagementPack (id As Guid) As ManagementPack
Parameters
- id
- Guid
The id of the management pack.
Returns
The ManagementPack with given id.
- Attributes
Exceptions
The requested object was not found.