IEntityTypeManagement.GetEnumeration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an enumeration value. Enumeration values are defined in a management pack under the EnumerationTypes
element, which is under the EntityTypes
element.
Overloads
GetEnumeration(Guid) |
Gets a single enumeration value by using the supplied identifier. |
GetEnumeration(String, ManagementPack) |
Gets a single enumeration value from a management pack by name. |
Remarks
Enumeration values are defined in a hierarchy structure based on their names. For example, suppose that the following enumeration values are defined in a management pack: A, A.B, and A.B.C. The enumeration value A.B has one child (the A.B.C enumeration value), and it also has one parent (the A enumeration value).
GetEnumeration(Guid)
Gets a single enumeration value by using the supplied identifier.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumeration ^ GetEnumeration(Guid id);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration GetEnumeration (Guid id);
abstract member GetEnumeration : Guid -> Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration
Public Function GetEnumeration (id As Guid) As ManagementPackEnumeration
Parameters
- id
- Guid
The unique identifier of an enumeration.
Returns
The enumeration.
Exceptions
The ManagementPackEnumeration type that is identified by the id
parameter does not exist.
Applies to
GetEnumeration(String, ManagementPack)
Gets a single enumeration value from a management pack by name.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumeration ^ GetEnumeration(System::String ^ typeName, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration GetEnumeration (string typeName, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
abstract member GetEnumeration : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration
Public Function GetEnumeration (typeName As String, managementPack As ManagementPack) As ManagementPackEnumeration
Parameters
- typeName
- String
Name of the enumeration.
- managementPack
- ManagementPack
The management pack that contains the enumeration to return.
Returns
The enumeration.
Exceptions
The managementPack
parameter is a null reference (Nothing in Visual Basic), or the typeName
parameter is a null reference (Nothing in Visual Basic).
The ManagementPackEnumeration type that is identified by the typeName
parameter was not found.
The typeName
parameter is equal to Empty.
Applies to
Thread Safety
These methods are thread safe.