IEntityTypeManagement.GetEnumerations 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 a collection of enumeration values. Enumeration values are defined in a management pack under the EnumerationTypes
element, which is under the EntityTypes
element.
Overloads
GetEnumerations(ICollection<Guid>) |
Gets a collection of management pack enumerations from the provided collection of identifiers. |
GetEnumerations() |
Gets a collection of all management pack enumerations defined on all management packs in the current management pack group. |
GetEnumerations(ManagementPackEnumerationCriteria) |
Gets a collection of management pack enumerations based on the search criteria provided. |
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).
GetEnumerations(ICollection<Guid>)
Gets a collection of management pack enumerations from the provided collection of identifiers.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumeration ^> ^ GetEnumerations(System::Collections::Generic::ICollection<Guid> ^ ids);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration> GetEnumerations (System.Collections.Generic.ICollection<Guid> ids);
abstract member GetEnumerations : System.Collections.Generic.ICollection<Guid> -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration>
Public Function GetEnumerations (ids As ICollection(Of Guid)) As IList(Of ManagementPackEnumeration)
Parameters
- ids
- ICollection<Guid>
The collection of enumeration identifiers.
Returns
The enumeration values.
Exceptions
The ids
parameter is a null reference (Nothing in Visual Basic).
The ids
parameter collection does not contain any items.
Applies to
GetEnumerations()
Gets a collection of all management pack enumerations defined on all management packs in the current management pack group.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumeration ^> ^ GetEnumerations();
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration> GetEnumerations ();
abstract member GetEnumerations : unit -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration>
Public Function GetEnumerations () As IList(Of ManagementPackEnumeration)
Returns
The enumeration values.
Applies to
GetEnumerations(ManagementPackEnumerationCriteria)
Gets a collection of management pack enumerations based on the search criteria provided.
public:
System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumeration ^> ^ GetEnumerations(Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumerationCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration> GetEnumerations (Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumerationCriteria criteria);
abstract member GetEnumerations : Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumerationCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration>
Public Function GetEnumerations (criteria As ManagementPackEnumerationCriteria) As IList(Of ManagementPackEnumeration)
Parameters
- criteria
- ManagementPackEnumerationCriteria
The management pack enumeration search criteria.
Returns
The enumeration values.
Exceptions
An error has occurred.
The criteria
parameter is a null reference (Nothing in Visual Basic).
Applies to
Thread Safety
These methods are thread safe.