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
參數
- target
型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcQueryExpression
A SfcQueryExpression object.
- policyCategory
型別:System. . :: . .String
A string value that specifies the policy category.