[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a collection of all the management packs that have been imported into the current management group that matches the specified criteria. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IManagementPackManagement
Dim criteria As ManagementPackCriteria
Dim returnValue As IList(Of ManagementPack)

returnValue = instance.GetManagementPacks(criteria)

Syntax

Visual Basic
Function GetManagementPacks ( _
		criteria As ManagementPackCriteria _
) As IList(Of ManagementPack)
C#
IList<ManagementPack> GetManagementPacks (
		ManagementPackCriteria criteria
)
C++
IList<ManagementPack^>^ GetManagementPacks (
		ManagementPackCriteria^ criteria
)
J#
IList<ManagementPack> GetManagementPacks (
		ManagementPackCriteria criteria
)
JScript
function GetManagementPacks (
		criteria : ManagementPackCriteria
) : IList<ManagementPack>

Parameters

criteria

Type: ManagementPackCriteria

The search criteria that specifies which management packs to return.

How to Query for Service Manager Data.

Return Value

Type: IList A collection of management packs.

Exceptions

Exception type Condition
ServerDisconnectedException

An error has occurred.

ArgumentNullException

The criteria parameter is a null reference (Nothing in Visual Basic).

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