• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class DataAnnotationsObjectValidator

Inheritance
System.Object
ObjectValidator
PropertyBasedObjectValidator
AttributeBasedObjectValidator<ValidationAttribute>
DataAnnotationsObjectValidator
Inherited Members
AttributeBasedObjectValidator<ValidationAttribute>.ValidateProperty(Object, PropertyInfo)
PropertyBasedObjectValidator.ValidateObject(Object)
Namespace: DotNetNuke.Web.Validators
Assembly: DotNetNuke.Web.dll
Syntax
public class DataAnnotationsObjectValidator : AttributeBasedObjectValidator<ValidationAttribute>

Methods

| Improve this Doc View Source

CreateError(String, ValidationAttribute)

Declaration
protected virtual ValidationError CreateError(string propertyName, ValidationAttribute attribute)
Parameters
Type Name Description
System.String propertyName
ValidationAttribute attribute
Returns
Type Description
ValidationError
| Improve this Doc View Source

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)

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS