Export (0) Print
Expand All

Policy.Evaluate Method (AdHocPolicyEvaluationMode, 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,
	params ISfcConnection[] targetConnections
)

Parameters

evaluationMode
Type: Microsoft.SqlServer.Management.Dmf.AdHocPolicyEvaluationMode
A AdHocPolicyEvaluationMode object.
targetConnections
Type: ISfcConnection[]
An array of ISfcConnection objects.

Return Value

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

Community Additions

ADD
Show:
© 2014 Microsoft