PolicyStore.UnsubscribeFromPolicyCategory(SfcQueryExpression, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.