Policy.Evaluate Method (AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[])


Evaluates the Policy object and applies policy to the data in identified by the targetConnections parameter.

Namespace:   Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

public bool Evaluate(
	AdHocPolicyEvaluationMode evaluationMode,
	SfcQueryExpression targetQueryExpression,
	params ISfcConnection[] targetConnections

Return Value

Type: System.Boolean

A Boolean value, True if the operation succeeds, otherwise False.

Return to top