Retrieves a collection of management packs that match the specified criteria. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim criteria As ManagementPackCriteria
Dim returnValue As ReadOnlyCollection(Of ManagementPack)

returnValue = instance.GetManagementPacks(criteria)

Syntax

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

Parameters

criteria

A value specifying the kind of management packs to be returned.

Return Value

A read-only collection of ManagementPack objects matching the specified criteria.

Example

For an example of the GetManagementPacks method, see How to Display Management Pack Contents.

Remarks

This method does not return Management Packs from the local in-memory cache.


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