CompositeActivityValidator.ValidateActivityChange 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据受影响的 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
参数
- 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>).
注解
如果验证未出错,则返回 null 引用 (Nothing) 。