Condividi tramite


PolicyStore.EnumApplicablePolicies(SfcQueryExpression) Method

Definition

Returns a DataTable containing the policies that apply to the same target type as the supplied target. In other words, if a Database target is given then policies that apply to Database, Table and any other types under database will be considered.

public System.Data.DataTable EnumApplicablePolicies (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target);
member this.EnumApplicablePolicies : Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression -> System.Data.DataTable
Public Function EnumApplicablePolicies (target As SfcQueryExpression) As DataTable

Parameters

Returns

A DataTable object containing the policies. The schema for this is as follows: Column Type
Name string
PolicyCategory String Effective bool AutomatedPolicyEvaluationMode enum PolicyEffectiveState enum PolicyHealthState enum LastExecutionTime DateTime

Applies to