共用方式為


Policy.Evaluate 方法 (AdHocPolicyEvaluationMode, SfcQueryExpression, array<ISfcConnection )

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

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
Public Function Evaluate ( _
    evaluationMode As AdHocPolicyEvaluationMode, _
    targetQueryExpression As SfcQueryExpression, _
    ParamArray targetConnections As ISfcConnection() _
) As Boolean
'用途
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

參數

傳回值

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

請參閱

參考

Policy 類別

Evaluate 多載

Microsoft.SqlServer.Management.Dmf 命名空間