PolicyStore.SubscribeToPolicyCategory(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.
Creates a subscription for the provided target to the specified policy category. This will throw if the subscription already exists.
public Microsoft.SqlServer.Management.Dmf.PolicyCategorySubscription SubscribeToPolicyCategory (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target, string policyCategory);
member this.SubscribeToPolicyCategory : Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression * string -> Microsoft.SqlServer.Management.Dmf.PolicyCategorySubscription
Public Function SubscribeToPolicyCategory (target As SfcQueryExpression, policyCategory As String) As PolicyCategorySubscription
Parameters
- target
- SfcQueryExpression
An expression that SfcObjectQuery will evaluate to a specific instance.
- policyCategory
- String
The category name to subscribe to.
Returns
PolicyCategorySubscription