Class DataAnnotationsObjectValidator
Inheritance
System.Object
AttributeBasedObjectValidator<ValidationAttribute>
DataAnnotationsObjectValidator
Inherited Members
Namespace: DotNetNuke.Web.Validators
Assembly: DotNetNuke.Web.dll
Syntax
public class DataAnnotationsObjectValidator : AttributeBasedObjectValidator<ValidationAttribute>
Methods
| Improve this Doc View SourceCreateError(String, ValidationAttribute)
Declaration
protected virtual ValidationError CreateError(string propertyName, ValidationAttribute attribute)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName | |
| ValidationAttribute | attribute |
Returns
| Type | Description |
|---|---|
| ValidationError |
ValidateAttribute(Object, PropertyInfo, ValidationAttribute)
Declaration
protected override ValidationResult ValidateAttribute(object target, PropertyInfo targetProperty, ValidationAttribute attribute)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | target | |
| PropertyInfo | targetProperty | |
| ValidationAttribute | attribute |
Returns
| Type | Description |
|---|---|
| ValidationResult |
Overrides
DotNetNuke.Web.Validators.AttributeBasedObjectValidator<ValidationAttribute>.ValidateAttribute(System.Object, PropertyInfo, ValidationAttribute)