Compartilhar via


IManagementPackManagement.GetManagementPack Method (String, String, Version)

Searches for a specific management pack object identified by the supplied name, public key token, and version values.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As IManagementPackManagement
Dim name As String
Dim keytoken As String
Dim version As Version
Dim returnValue As ManagementPack

returnValue = instance.GetManagementPack(name, keytoken, version)

Syntax

'Declaration
Function GetManagementPack ( _
    name As String, _
    keytoken As String, _
    version As Version _
) As ManagementPack
ManagementPack GetManagementPack (
    string name,
    string keytoken,
    Version version
)
ManagementPack^ GetManagementPack (
    String^ name, 
    String^ keytoken, 
    Version^ version
)
ManagementPack GetManagementPack (
    String name, 
    String keytoken, 
    Version version
)
function GetManagementPack (
    name : String, 
    keytoken : String, 
    version : Version
) : ManagementPack

Parameters

  • name
    The name of the management pack.
  • keytoken
    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
    Specifies the version for the returned management pack.

Return Value

The management pack.

Exceptions

Exception type Condition
ArgumentNullException

The name parameter is a null reference (Nothing in Visual Basic) or equals Empty.

ObjectNotFoundException

The ManagementPack type does not exist based on all parameters.

Thread Safety

This method is thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

IManagementPackManagement Interface
IManagementPackManagement Members
Microsoft.EnterpriseManagement Namespace