WorkflowChangeAction.ValidateChanges(Activity) 方法
定义
当在派生类中重写时,验证更改并返回包含任意错误的 ValidationErrorCollection。When overridden in a derived class, validates the changes and returns a ValidationErrorCollection that contains any errors.
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
参数
返回
包含任意错误的 ValidationErrorCollection。A ValidationErrorCollection that contains any errors.
例外
activityInstance 为空引用(在 Visual Basic 中为 Nothing)。activityInstance is a null reference (Nothing in Visual Basic).