Show / Hide Table of Contents

Class DataAnnotationsObjectValidator

Inheritance
object
ObjectValidator
PropertyBasedObjectValidator
AttributeBasedObjectValidator<ValidationAttribute>
DataAnnotationsObjectValidator
Inherited Members
AttributeBasedObjectValidator<ValidationAttribute>.ValidateProperty(object, PropertyInfo)
PropertyBasedObjectValidator.ValidateObject(object)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Web.Validators
Assembly: DotNetNuke.Web.dll
Syntax
public class DataAnnotationsObjectValidator : AttributeBasedObjectValidator<ValidationAttribute>

Constructors

DataAnnotationsObjectValidator()

Declaration
public DataAnnotationsObjectValidator()

Methods

CreateError(string, ValidationAttribute)

Declaration
protected virtual ValidationError CreateError(string propertyName, ValidationAttribute attribute)
Parameters
Type Name Description
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
object target
PropertyInfo targetProperty
ValidationAttribute attribute
Returns
Type Description
ValidationResult
Overrides
AttributeBasedObjectValidator<ValidationAttribute>.ValidateAttribute(object, PropertyInfo, ValidationAttribute)

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS