共用方式為


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 為 null 參考 (在 Visual Basic 中為 Nothing)。

適用於