Evaluate 方法 (AdHocPolicyEvaluationMode, SfcQueryExpression, 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
参数
- evaluationMode
类型:Microsoft.SqlServer.Management.Dmf. . :: . .AdHocPolicyEvaluationMode
A AdHocPolicyEvaluationMode object.
- targetQueryExpression
类型:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcQueryExpression
A SfcQueryExpression object.
- targetConnections
类型:array<Microsoft.SqlServer.Management.Common. . :: . .ISfcConnection> [] () [] []
An array of ISfcConnection objects.
返回值
类型:System. . :: . .Boolean
A Boolean value, True if the operation succeeds, otherwise False.