[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets all categories that are applied to the provided management pack element. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IEntityTypeManagement
Dim element As ManagementPackElement
Dim returnValue As IList(Of ManagementPackCategory)

returnValue = instance.GetCategories(element)

Syntax

Visual Basic
Function GetCategories ( _
		element As ManagementPackElement _
) As IList(Of ManagementPackCategory)
C#
IList<ManagementPackCategory> GetCategories (
		ManagementPackElement element
)
C++
IList<ManagementPackCategory^>^ GetCategories (
		ManagementPackElement^ element
)
J#
IList<ManagementPackCategory> GetCategories (
		ManagementPackElement element
)
JScript
function GetCategories (
		element : ManagementPackElement
) : IList<ManagementPackCategory>

Parameters

element

Type: ManagementPackElement

The management pack element that is used to get categories.

Return Value

Type: IList The list of categories.

Exceptions

Exception type Condition
ArgumentNullException

The element 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