Navigation :
FieldValidationResult
Name |
Value |
Assembly |
Catel.Core |
Namespace |
Catel.Data |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public class FieldValidationResult : IFieldValidationResult, ValidationResult
Base types
ValidationResult
Implements interfaces
IFieldValidationResult
Field validation result.
Constructors
Initializes a new instance of the FieldValidationResult class.
Parameters
Name |
Description |
property |
The property data. |
validationResultType |
Type of the validation result. |
messageFormat |
The message format. |
args |
The args. |
Exceptions
Name |
Description |
ArgumentNullException |
The property isnull . |
ArgumentException |
The messageFormat isnull or whitespace. |
Initializes a new instance of the FieldValidationResult class.
Parameters
Name |
Description |
propertyName |
Name of the property. |
validationResultType |
Type of the validation result. |
messageFormat |
The message format. |
args |
The args. |
Exceptions
Name |
Description |
ArgumentException |
The propertyName isnull or whitespace. |
Properties
PropertyName
Gets the name of the property.
Methods
Creates a FieldValidationResult containing an error.
Parameters
Name |
Description |
propertyData |
The property data. |
messageFormat |
The message format. |
args |
The args. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentNullException |
The propertyData isnull . |
ArgumentException |
The messageFormat isnull or whitespace. |
Creates a FieldValidationResult containing an error.
Parameters
Name |
Description |
propertyName |
Name of the property. |
messageFormat |
The message format. |
args |
The args. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyName isnull or whitespace. |
Creates a FieldValidationResult containing an error.
Type Parameters
TProperty
The type of the property.
Parameters
Name |
Description |
propertyExpression |
The property expression. |
messageFormat |
The message format. |
args |
The args. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyExpression isnull . |
CreateErrorWithTag(PropertyData propertyData, string message, object tag)
Creates a FieldValidationResult containing an error.
Parameters
Name |
Description |
propertyData |
The property data. |
message |
The message. |
tag |
The tag. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentNullException |
The propertyData isnull . |
CreateErrorWithTag(string propertyName, string message, object tag)
Creates a FieldValidationResult containing an error.
Parameters
Name |
Description |
propertyName |
Name of the property. |
message |
The message. |
tag |
The tag. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyName isnull or whitespace. |
ArgumentNullException |
The message isnull . |
CreateErrorWithTag<TProperty>(Expression<Func<TProperty>> propertyExpression, string message, object tag)
Creates a FieldValidationResult containing an error.
Type Parameters
TProperty
The type of the property.
Parameters
Name |
Description |
propertyExpression |
The property expression. |
message |
The message. |
tag |
The tag. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyExpression isnull . |
ArgumentNullException |
The message isnull . |
Creates a FieldValidationResult containing a warning.
Parameters
Name |
Description |
propertyData |
The property data. |
messageFormat |
The message format. |
args |
The args. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentNullException |
The propertyData isnull . |
ArgumentException |
The messageFormat isnull or whitespace. |
Creates a FieldValidationResult containing a warning.
Parameters
Name |
Description |
propertyName |
Name of the property. |
messageFormat |
The message format. |
args |
The args. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyName isnull or whitespace. |
Creates a FieldValidationResult containing a warning.
Type Parameters
TProperty
The type of themodel.
Parameters
Name |
Description |
propertyExpression |
The property expression. |
messageFormat |
The message format. |
args |
The args. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyExpression isnull . |
CreateWarningWithTag(PropertyData propertyData, string message, object tag)
Creates a FieldValidationResult containing a warning.
Parameters
Name |
Description |
propertyData |
The property data. |
message |
The message. |
tag |
The tag. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentNullException |
The propertyData isnull . |
CreateWarningWithTag(string propertyName, string message, object tag)
Creates a FieldValidationResult containing a warning.
Parameters
Name |
Description |
propertyName |
Name of the property. |
message |
The message. |
tag |
The tag. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyName isnull or whitespace. |
ArgumentNullException |
The message isnull . |
CreateWarningWithTag<TProperty>(Expression<Func<TProperty>> propertyExpression, string message, object tag)
Creates a FieldValidationResult containing a warning.
Type Parameters
TProperty
The type of the property.
Parameters
Name |
Description |
propertyExpression |
The property expression. |
message |
The message. |
tag |
The tag. |
Returns
The FieldValidationResult.
Exceptions
Name |
Description |
ArgumentException |
The propertyExpression isnull . |
ArgumentNullException |
The message isnull . |
ToString()
Returns a that represents this instance.
Returns
A that represents this instance.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion