Class ContentDataAnnotationsValidator

Validates the IContentData instance against attributes inheriting System.ComponentModel.DataAnnotations.ValidationAttribute.

Inheritance
System.Object
ContentDataAnnotationsValidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class ContentDataAnnotationsValidator : DataAnnotationsValidator<IContentData>, IValidate<IContentData>, IValidate
Remarks

Validation will not be performed against System.ComponentModel.DataAnnotations.RequiredAttribute since that is done through RequiredPropertyValidator

Constructors

ContentDataAnnotationsValidator()

Initializes a new instance of the ContentDataAnnotationsValidator class.

Declaration
public ContentDataAnnotationsValidator()

ContentDataAnnotationsValidator(LocalizationService)

Initializes a new instance of the ContentDataAnnotationsValidator class.

Declaration
public ContentDataAnnotationsValidator(LocalizationService localizationService)
Parameters
Type Name Description
LocalizationService localizationService

The localization service.

Properties

IgnoredAttributes

Gets the ignored attributes.

Declaration
public override IEnumerable<Type> IgnoredAttributes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Type>

The ignored attributes.

Overrides
EPiServer.Validation.DataAnnotationsValidator<EPiServer.Core.IContentData>.IgnoredAttributes
Remarks

Returns System.ComponentModel.DataAnnotations.RequiredAttribute

Implements

Extension Methods