Adds a reference to a Management Pack if a reference does not already exist, and returns the alias for the newly created reference. Namespace: Microsoft.EnterpriseManagement.UI
Assembly: Microsoft.EnterpriseManagement.UI.Extensibility (in microsoft.enterprisemanagement.ui.extensibility.dll)

Usage

Visual Basic
Dim instance As IAuthoringContext
Dim managementPack As ManagementPack
Dim returnValue As String

returnValue = instance.AddManagementPackReference(managementPack)

Syntax

Visual Basic
Function AddManagementPackReference ( _
		managementPack As ManagementPack _
) As String
C#
string AddManagementPackReference (
		ManagementPack managementPack
)
C++
String^ AddManagementPackReference (
		ManagementPack^ managementPack
)
J#
String AddManagementPackReference (
		ManagementPack managementPack
)
JScript
function AddManagementPackReference (
		managementPack : ManagementPack
) : String

Parameters

managementPack

The Management Pack to add a reference to.

Return Value

A string that contains an alias for the newly created reference.

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,Windows Vista,Windows XP

See Also