Policy.Evaluate Policy.Evaluate Policy.Evaluate Method

정의

정책을 즉시 실행합니다. Immediately executes the policy.

오버로드

Evaluate(AdHocPolicyEvaluationMode, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, ISfcConnection[])

평가 Policy 개체를 식별 하 여 데이터에 정책을 적용 합니다 targetConnections 매개 변수입니다. Evaluates the Policy object and applies policy to the data in identified by the targetConnections parameter.

Evaluate(AdHocPolicyEvaluationMode, Object[]) Evaluate(AdHocPolicyEvaluationMode, Object[]) Evaluate(AdHocPolicyEvaluationMode, Object[])

지정한 평가 모드를 사용하여 지정한 대상 개체에 대해 정책을 즉시 실행합니다. Immediately executes the policy against the specified target objects by using the specified evaluation mode.

Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[])

평가 Policy 개체를 식별 하 여 데이터에 정책을 적용 합니다 targetConnections 매개 변수입니다. Evaluates the Policy object and applies policy to the data in identified by the targetConnections parameter.

Evaluate(AdHocPolicyEvaluationMode, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, ISfcConnection[])

평가 Policy 개체를 식별 하 여 데이터에 정책을 적용 합니다 targetConnections 매개 변수입니다. Evaluates the Policy object and applies policy to the data in identified by the targetConnections parameter.

public:
 bool Evaluate(Microsoft::SqlServer::Management::Dmf::AdHocPolicyEvaluationMode evaluationMode, ... cli::array <Microsoft::SqlServer::Management::Common::ISfcConnection ^> ^ targetConnections);
public bool Evaluate (Microsoft.SqlServer.Management.Dmf.AdHocPolicyEvaluationMode evaluationMode, params Microsoft.SqlServer.Management.Common.ISfcConnection[] targetConnections);
Public Function Evaluate (evaluationMode As AdHocPolicyEvaluationMode, ParamArray targetConnections As ISfcConnection()) As Boolean
매개 변수
targetConnections
Microsoft.SqlServer.Management.Common.ISfcConnection[]

배열을 Microsoft.SqlServer.Management.Common.ISfcConnection 개체입니다. An array of Microsoft.SqlServer.Management.Common.ISfcConnection objects.

반환

부울 값입니다. 작업이 성공하면 True이고, 그렇지 않으면 False입니다. A Boolean value, True if the operation succeeds, otherwise False.

Evaluate(AdHocPolicyEvaluationMode, Object[]) Evaluate(AdHocPolicyEvaluationMode, Object[]) Evaluate(AdHocPolicyEvaluationMode, Object[])

지정한 평가 모드를 사용하여 지정한 대상 개체에 대해 정책을 즉시 실행합니다. Immediately executes the policy against the specified target objects by using the specified evaluation mode.

public:
 bool Evaluate(Microsoft::SqlServer::Management::Dmf::AdHocPolicyEvaluationMode evaluationMode, ... cli::array <System::Object ^> ^ targetObjects);
[Microsoft.SqlServer.Diagnostics.STrace.STraceConfiguration(SkipAutoTrace=true)]
public bool Evaluate (Microsoft.SqlServer.Management.Dmf.AdHocPolicyEvaluationMode evaluationMode, params object[] targetObjects);
Public Function Evaluate (evaluationMode As AdHocPolicyEvaluationMode, ParamArray targetObjects As Object()) As Boolean
매개 변수
evaluationMode
AdHocPolicyEvaluationMode AdHocPolicyEvaluationMode AdHocPolicyEvaluationMode

AdHocPolicyEvaluationMode 정책이 지정 된 대상에 대해 실행 하는 경우 사용할 평가 모드를 지정 하는 개체입니다. An AdHocPolicyEvaluationMode object that specifies the evaluation mode to use when the policy executes against the specified target.

targetObjects
Object[]

대상 개체를 지정하는 Object 개체입니다. An Object object that specifies target objects.

반환

정책이 성공적으로 실행되었는지 여부를 확인하는 Boolean 값입니다. A Boolean value that verifies whether the policy was executed successfully. If True에 정책이 성공적으로 실행 되었습니다. If True, the policy was executed successfully. 그렇지 않으면 False합니다. Otherwise, False.

설명

이 모든 대상 필터 및 그룹 정책 무시합니다.This ignores all target filters and policy groups. 쿼리 식은 단일 개체에 없으면 예외가 throw 됩니다이 있습니다.This will throw an exception if the query expression isn’t a single object.

Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[]) Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, ISfcConnection[])

평가 Policy 개체를 식별 하 여 데이터에 정책을 적용 합니다 targetConnections 매개 변수입니다. Evaluates the Policy object and applies policy to the data in identified by the targetConnections parameter.

public:
 bool Evaluate(Microsoft::SqlServer::Management::Dmf::AdHocPolicyEvaluationMode evaluationMode, Microsoft::SqlServer::Management::Sdk::Sfc::SfcQueryExpression ^ targetQueryExpression, ... cli::array <Microsoft::SqlServer::Management::Common::ISfcConnection ^> ^ targetConnections);
public bool Evaluate (Microsoft.SqlServer.Management.Dmf.AdHocPolicyEvaluationMode evaluationMode, Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression targetQueryExpression, params Microsoft.SqlServer.Management.Common.ISfcConnection[] targetConnections);
Public Function Evaluate (evaluationMode As AdHocPolicyEvaluationMode, targetQueryExpression As SfcQueryExpression, ParamArray targetConnections As ISfcConnection()) As Boolean
매개 변수
targetConnections
Microsoft.SqlServer.Management.Common.ISfcConnection[]

배열을 Microsoft.SqlServer.Management.Common.ISfcConnection 개체입니다. An array of Microsoft.SqlServer.Management.Common.ISfcConnection objects.

반환

부울 값입니다. 작업이 성공하면 True이고, 그렇지 않으면 False입니다. A Boolean value, True if the operation succeeds, otherwise False.

적용 대상