[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a management pack ID by using the name and the optional public key token. Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim managementPackName As String
Dim publicKeyToken As String
Dim returnValue As Guid

returnValue = ManagementPack.GetId(managementPackName, publicKeyToken)

Syntax

Visual Basic
Public Shared Function GetId ( _
		managementPackName As String, _
		publicKeyToken As String _
) As Guid
C#
public static Guid GetId (
		string managementPackName,
		string publicKeyToken
)
C++
public:
static Guid GetId (
		String^ managementPackName, 
		String^ publicKeyToken
)
J#
public static Guid GetId (
		String managementPackName, 
		String publicKeyToken
)
JScript
public static function GetId (
		managementPackName : String, 
		publicKeyToken : String
) : Guid

Parameters

managementPackName

The name of the management pack.

publicKeyToken

The public key token of the management pack if the management pack is signed. Use null if the management pack is not signed.

Return Value

Returns a Guid object. A management pack ID.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be 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