Share via


PolicyStore.EnumPolicyCategories Method

Returns an enumerated list of policy category information.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public Function EnumPolicyCategories As ReadOnlyCollection(Of PolicyCategoryInformation)
'Usage
Dim instance As PolicyStore 
Dim returnValue As ReadOnlyCollection(Of PolicyCategoryInformation)

returnValue = instance.EnumPolicyCategories()
public ReadOnlyCollection<PolicyCategoryInformation> EnumPolicyCategories()
public:
ReadOnlyCollection<PolicyCategoryInformation^>^ EnumPolicyCategories()
member EnumPolicyCategories : unit -> ReadOnlyCollection<PolicyCategoryInformation> 
public function EnumPolicyCategories() : ReadOnlyCollection<PolicyCategoryInformation>

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<PolicyCategoryInformation>
A PolicyCategoryInformationCollection object that contains a list of policy category information.

See Also

Reference

PolicyStore Class

Microsoft.SqlServer.Management.Dmf Namespace