IEntityTypeManagement.GetCategories Method

Definition

Gets a collection of categories that are applied to management packs. A category is used to tag management pack elements by using a keyword value. Elements that share the same keyword value are in the same category.

Overloads

GetCategories()

Gets all categories that are applied to all management packs in this management group.

GetCategories(ManagementPack)

Gets all categories that are applied to the provided management pack.

GetCategories(ManagementPackCategoryCriteria)

Gets all categories that match the criteria.

GetCategories(ManagementPackElement)

Gets all categories that are applied to the provided management pack element.

GetCategories()

Gets all categories that are applied to all management packs in this management group.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackCategory ^> ^ GetCategories();
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory> GetCategories ();
abstract member GetCategories : unit -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory>
Public Function GetCategories () As IList(Of ManagementPackCategory)

Returns

The list of categories.

Applies to

GetCategories(ManagementPack)

Gets all categories that are applied to the provided management pack.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackCategory ^> ^ GetCategories(Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory> GetCategories (Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
abstract member GetCategories : Microsoft.EnterpriseManagement.Configuration.ManagementPack -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory>
Public Function GetCategories (managementPack As ManagementPack) As IList(Of ManagementPackCategory)

Parameters

managementPack
ManagementPack

The management pack.

Returns

The list of categories.

Exceptions

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

Applies to

GetCategories(ManagementPackCategoryCriteria)

Gets all categories that match the criteria.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackCategory ^> ^ GetCategories(Microsoft::EnterpriseManagement::Configuration::ManagementPackCategoryCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory> GetCategories (Microsoft.EnterpriseManagement.Configuration.ManagementPackCategoryCriteria criteria);
abstract member GetCategories : Microsoft.EnterpriseManagement.Configuration.ManagementPackCategoryCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory>
Public Function GetCategories (criteria As ManagementPackCategoryCriteria) As IList(Of ManagementPackCategory)

Parameters

criteria
ManagementPackCategoryCriteria

The category search criteria.

Returns

The list of categories.

Exceptions

An error has occurred.

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

Applies to

GetCategories(ManagementPackElement)

Gets all categories that are applied to the provided management pack element.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackCategory ^> ^ GetCategories(Microsoft::EnterpriseManagement::Configuration::ManagementPackElement ^ element);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory> GetCategories (Microsoft.EnterpriseManagement.Configuration.ManagementPackElement element);
abstract member GetCategories : Microsoft.EnterpriseManagement.Configuration.ManagementPackElement -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackCategory>
Public Function GetCategories (element As ManagementPackElement) As IList(Of ManagementPackCategory)

Parameters

element
ManagementPackElement

The management pack element that is used to retrieve categories.

Returns

The list of categories.

Exceptions

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

Applies to

Thread Safety

These methods are thread safe.