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 为空引用(在 Visual Basic 中为 Nothing)。

- 或 -

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

注解

如果验证未生成错误,则返回一个空引用 (Nothing)。

适用于