[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]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

Visual Basic
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

Visual Basic
Function GetManagementPack ( _
		name As String, _
		keytoken As String, _
		version As Version _
) As ManagementPack
C#
ManagementPack GetManagementPack (
		string name,
		string keytoken,
		Version version
)
C++
ManagementPack^ GetManagementPack (
		String^ name, 
		String^ keytoken, 
		Version^ version
)
J#
ManagementPack GetManagementPack (
		String name, 
		String keytoken, 
		Version version
)
JScript
function GetManagementPack (
		name : String, 
		keytoken : String, 
		version : Version
) : ManagementPack

Parameters

name

Type: String

The name of the management pack.

keytoken

Type: 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

Type: Version

Specifies the version for the returned management pack.

Return Value

Type: ManagementPack 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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also