Constraint.AddValidationError(NativeActivityContext, ValidationError) 方法

定义

将验证错误添加到附加到执行上下文的运行时验证错误的列表。

public:
 static void AddValidationError(System::Activities::NativeActivityContext ^ context, System::Activities::Validation::ValidationError ^ error);
public static void AddValidationError (System.Activities.NativeActivityContext context, System.Activities.Validation.ValidationError error);
static member AddValidationError : System.Activities.NativeActivityContext * System.Activities.Validation.ValidationError -> unit
Public Shared Sub AddValidationError (context As NativeActivityContext, error As ValidationError)

参数

context
NativeActivityContext

工作流活动的执行环境。

error
ValidationError

在工作流运行时期间发生的验证错误。

适用于