[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a single enumeration value from a management pack by name. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IEntityTypeManagement
Dim typeName As String
Dim managementPack As ManagementPack
Dim returnValue As ManagementPackEnumeration

returnValue = instance.GetEnumeration(typeName, managementPack)

Syntax

Visual Basic
Function GetEnumeration ( _
		typeName As String, _
		managementPack As ManagementPack _
) As ManagementPackEnumeration
C#
ManagementPackEnumeration GetEnumeration (
		string typeName,
		ManagementPack managementPack
)
C++
ManagementPackEnumeration^ GetEnumeration (
		String^ typeName, 
		ManagementPack^ managementPack
)
J#
ManagementPackEnumeration GetEnumeration (
		String typeName, 
		ManagementPack managementPack
)
JScript
function GetEnumeration (
		typeName : String, 
		managementPack : ManagementPack
) : ManagementPackEnumeration

Parameters

typeName

Type: String

Name of the enumeration.

managementPack

Type: ManagementPack

The management pack that contains the enumeration to return.

Return Value

Type: ManagementPackEnumeration The enumeration.

Exceptions

Exception type Condition
ArgumentNullException

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

-or-

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

ObjectNotFoundException

The ManagementPackEnumeration type that is identified by the typeName parameter was not found.

ArgumentOutOfRangeException

The typeName parameter is equal to Empty.

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