WorkflowChangeAction.ValidateChanges(Activity) 方法

定义

当在派生类中重写时,验证更改并返回包含任意错误的 ValidationErrorCollection

protected public:
 abstract System::Workflow::ComponentModel::Compiler::ValidationErrorCollection ^ ValidateChanges(System::Workflow::ComponentModel::Activity ^ activity);
protected internal abstract System.Workflow.ComponentModel.Compiler.ValidationErrorCollection ValidateChanges (System.Workflow.ComponentModel.Activity activity);
abstract member ValidateChanges : System.Workflow.ComponentModel.Activity -> System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
Protected Friend MustOverride Function ValidateChanges (activity As Activity) As ValidationErrorCollection

参数

activity
Activity

针对其验证更改的 Activity

返回

包含任意错误的 ValidationErrorCollection

例外

activityInstance 为空引用(在 Visual Basic 中为 Nothing)。

适用于