CodeActivityMetadata.AddValidationError CodeActivityMetadata.AddValidationError CodeActivityMetadata.AddValidationError CodeActivityMetadata.AddValidationError Method

Definition

Adds a validation error to the metadata's collection of validation errors.

Overloads

AddValidationError(ValidationError) AddValidationError(ValidationError) AddValidationError(ValidationError)

Adds the specified validation error to the metadata's collection of validation errors.

AddValidationError(String) AddValidationError(String) AddValidationError(String) AddValidationError(String)

Adds a validation error to the metadata's collection of validation errors using the specified description.

Remarks

For more information, see Imperative Code-Based Validation.

AddValidationError(ValidationError) AddValidationError(ValidationError) AddValidationError(ValidationError)

Adds the specified validation error to the metadata's collection of validation errors.

public:
 void AddValidationError(System::Activities::Validation::ValidationError ^ validationError);
public void AddValidationError (System.Activities.Validation.ValidationError validationError);
member this.AddValidationError : System.Activities.Validation.ValidationError -> unit

Parameters

validationError
ValidationError ValidationError ValidationError ValidationError

The validation error to add.

Remarks

For more information, see Imperative Code-Based Validation.

AddValidationError(String) AddValidationError(String) AddValidationError(String) AddValidationError(String)

Adds a validation error to the metadata's collection of validation errors using the specified description.

public:
 void AddValidationError(System::String ^ validationErrorMessage);
public void AddValidationError (string validationErrorMessage);
member this.AddValidationError : string -> unit
Public Sub AddValidationError (validationErrorMessage As String)

Parameters

validationErrorMessage
String String String String

A message that describes the validation error.

Remarks

For more information, see Imperative Code-Based Validation.

Applies to