EnumPolicyCategories 方法
Returns an enumerated list of policy category information.
命名空间: Microsoft.SqlServer.Management.Dmf
程序集: Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)
语法
声明
Public Function EnumPolicyCategories As ReadOnlyCollection(Of PolicyCategoryInformation)
用法
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>
返回值
类型:System.Collections.ObjectModel. . :: . .ReadOnlyCollection< (Of < ( <'PolicyCategoryInformation> ) > ) >
A PolicyCategoryInformationCollection object that contains a list of policy category information.