Share via


PolicyStore.UnsubscribeFromPolicyCategory(SfcQueryExpression, String) Method

Definition

Unsubscribe the provided target from the specified policy category. This will throw if the target does not subscribe to the category.

public void UnsubscribeFromPolicyCategory (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target, string policyCategory);
member this.UnsubscribeFromPolicyCategory : Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression * string -> unit
Public Sub UnsubscribeFromPolicyCategory (target As SfcQueryExpression, policyCategory As String)

Parameters

target
SfcQueryExpression

An expression that SfcObjectQuery will evaluate to a specific instance.

policyCategory
String

The category name to unsubscribe from.

Applies to