संपादित करें

इसके माध्यम से साझा किया गया


CodeActivityMetadata.AddValidationError Method

Definition

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

Overloads

AddValidationError(ValidationError)

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

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)

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
Public Sub AddValidationError (validationError As ValidationError)

Parameters

validationError
ValidationError

The validation error to add.

Remarks

For more information, see Imperative Code-Based Validation.

Applies to

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

A message that describes the validation error.

Remarks

For more information, see Imperative Code-Based Validation.

Applies to