AsyncValidationAttribute Constructors
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.
Overloads
| Name | Description |
|---|---|
| AsyncValidationAttribute() |
Default constructor for any async validation attribute. |
| AsyncValidationAttribute(Func<String>) |
Allows for providing a resource accessor function that is used by the ErrorMessageString property to retrieve the error message. |
| AsyncValidationAttribute(String) |
Constructor that accepts a fixed validation error message. |
AsyncValidationAttribute()
- Source:
- AsyncValidationAttribute.cs
Default constructor for any async validation attribute.
protected:
AsyncValidationAttribute();
protected AsyncValidationAttribute();
Protected Sub New ()
Applies to
AsyncValidationAttribute(Func<String>)
- Source:
- AsyncValidationAttribute.cs
Allows for providing a resource accessor function that is used by the ErrorMessageString property to retrieve the error message.
protected:
AsyncValidationAttribute(Func<System::String ^> ^ errorMessageAccessor);
protected AsyncValidationAttribute(Func<string> errorMessageAccessor);
new System.ComponentModel.DataAnnotations.AsyncValidationAttribute : Func<string> -> System.ComponentModel.DataAnnotations.AsyncValidationAttribute
Protected Sub New (errorMessageAccessor As Func(Of String))
Parameters
The Func<TResult> that returns an error message.
Applies to
AsyncValidationAttribute(String)
- Source:
- AsyncValidationAttribute.cs
Constructor that accepts a fixed validation error message.
protected:
AsyncValidationAttribute(System::String ^ errorMessage);
protected AsyncValidationAttribute(string errorMessage);
new System.ComponentModel.DataAnnotations.AsyncValidationAttribute : string -> System.ComponentModel.DataAnnotations.AsyncValidationAttribute
Protected Sub New (errorMessage As String)
Parameters
- errorMessage
- String
A non-localized error message to use in ErrorMessageString.