共用方式為


CompositeActivityValidator.ValidateActivityChange 方法

定義

根據受影響的 Activity 來驗證變更並提供錯誤。

public:
 override System::Workflow::ComponentModel::Compiler::ValidationError ^ ValidateActivityChange(System::Workflow::ComponentModel::Activity ^ activity, System::Workflow::ComponentModel::ActivityChangeAction ^ action);
public override System.Workflow.ComponentModel.Compiler.ValidationError ValidateActivityChange (System.Workflow.ComponentModel.Activity activity, System.Workflow.ComponentModel.ActivityChangeAction action);
override this.ValidateActivityChange : System.Workflow.ComponentModel.Activity * System.Workflow.ComponentModel.ActivityChangeAction -> System.Workflow.ComponentModel.Compiler.ValidationError
Public Overrides Function ValidateActivityChange (activity As Activity, action As ActivityChangeAction) As ValidationError

參數

activity
Activity

受影響的 Activity

action
ActivityChangeAction

定義變更的 ActivityChangeAction

傳回

依驗證的 ValidationError

例外狀況

activity 為 null 參考 (在 Visual Basic 中為 Nothing)。

-或-

      <code data-dev-comment-type="paramref">action</code> is a null reference (<code data-dev-comment-type="langword">Nothing</code>).

備註

如果發生驗證而沒有錯誤,則傳回 null 參考 (Nothing)。

適用於