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.