다음을 통해 공유


PolicyStore.SubscribeToPolicyCategory 메서드

Subscribes the policy store to the category specified by the policyCategory and target parameters.

네임스페이스:  Microsoft.SqlServer.Management.Dmf
어셈블리:  Microsoft.SqlServer.Dmf(Microsoft.SqlServer.Dmf.dll)

구문

‘선언
Public Function SubscribeToPolicyCategory ( _
    target As SfcQueryExpression, _
    policyCategory As String _
) As PolicyCategorySubscription
‘사용 방법
Dim instance As PolicyStore 
Dim target As SfcQueryExpression 
Dim policyCategory As String 
Dim returnValue As PolicyCategorySubscription 

returnValue = instance.SubscribeToPolicyCategory(target, _
    policyCategory)
public PolicyCategorySubscription SubscribeToPolicyCategory(
    SfcQueryExpression target,
    string policyCategory
)
public:
PolicyCategorySubscription^ SubscribeToPolicyCategory(
    SfcQueryExpression^ target, 
    String^ policyCategory
)
member SubscribeToPolicyCategory : 
        target:SfcQueryExpression * 
        policyCategory:string -> PolicyCategorySubscription
public function SubscribeToPolicyCategory(
    target : SfcQueryExpression, 
    policyCategory : String
) : PolicyCategorySubscription

매개 변수

  • policyCategory
    유형: System.String
    A string value that specifies the policy category.

반환 값

유형: Microsoft.SqlServer.Management.Dmf.PolicyCategorySubscription
A PolicyCategorySubscription object.

참고 항목

참조

PolicyStore 클래스

Microsoft.SqlServer.Management.Dmf 네임스페이스