PolicyStore.EnumApplicablePolicies(SfcQueryExpression) 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.
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
- target
- SfcQueryExpression
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