Partager via


Méthode Policy.Evaluate (AdHocPolicyEvaluationMode, SfcQueryExpression, array<ISfcConnection )

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

Espace de noms :  Microsoft.SqlServer.Management.Dmf
Assembly :  Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)

Syntaxe

'Déclaration
Public Function Evaluate ( _
    evaluationMode As AdHocPolicyEvaluationMode, _
    targetQueryExpression As SfcQueryExpression, _
    ParamArray targetConnections As ISfcConnection() _
) As Boolean
'Utilisation
Dim instance As Policy 
Dim evaluationMode As AdHocPolicyEvaluationMode 
Dim targetQueryExpression As SfcQueryExpression 
Dim targetConnections As ISfcConnection()
Dim returnValue As Boolean 

returnValue = instance.Evaluate(evaluationMode, _
    targetQueryExpression, targetConnections)
public bool Evaluate(
    AdHocPolicyEvaluationMode evaluationMode,
    SfcQueryExpression targetQueryExpression,
    params ISfcConnection[] targetConnections
)
public:
bool Evaluate(
    AdHocPolicyEvaluationMode evaluationMode, 
    SfcQueryExpression^ targetQueryExpression, 
    ... array<ISfcConnection^>^ targetConnections
)
member Evaluate : 
        evaluationMode:AdHocPolicyEvaluationMode * 
        targetQueryExpression:SfcQueryExpression * 
        targetConnections:ISfcConnection[] -> bool
public function Evaluate(
    evaluationMode : AdHocPolicyEvaluationMode, 
    targetQueryExpression : SfcQueryExpression, 
    ... targetConnections : ISfcConnection[]
) : boolean

Paramètres

Valeur de retour

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

Voir aussi

Référence

Policy Classe

Surcharge Evaluate

Espace de noms Microsoft.SqlServer.Management.Dmf