共用方式為


EnumApplicablePolicyCategories 方法

Enumerates conditions specified by an SfcQueryExpression object.

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
Public Function EnumApplicablePolicyCategories ( _
    target As SfcQueryExpression _
) As ReadOnlyCollection(Of PolicyCategoryInformation)
'用途
Dim instance As PolicyStore
Dim target As SfcQueryExpression
Dim returnValue As ReadOnlyCollection(Of PolicyCategoryInformation)

returnValue = instance.EnumApplicablePolicyCategories(target)
public ReadOnlyCollection<PolicyCategoryInformation> EnumApplicablePolicyCategories(
    SfcQueryExpression target
)
public:
ReadOnlyCollection<PolicyCategoryInformation^>^ EnumApplicablePolicyCategories(
    SfcQueryExpression^ target
)
member EnumApplicablePolicyCategories : 
        target:SfcQueryExpression -> ReadOnlyCollection<PolicyCategoryInformation> 
public function EnumApplicablePolicyCategories(
    target : SfcQueryExpression
) : ReadOnlyCollection<PolicyCategoryInformation>

傳回值

型別:System.Collections.ObjectModel. . :: . .ReadOnlyCollection< (Of < ( <'PolicyCategoryInformation> ) > ) >
A generic ReadOnlyCollection of PolicyCategoryInformation objects.