共用方式為


StateActivityValidator.ValidateActivityChange 方法

定義

驗證對 StateActivity 的變更。

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

要驗證之 StateActivity 的名稱。

action
ActivityChangeAction

StateActivity 上採取的動作。

傳回

ValidationError

ValidationErrorCollection,其中包含這項作業的錯誤。

適用於