NativeActivityMetadata.AddValidationError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a validation error to the metadata' 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.