Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ContentDataAnnotationsValidator

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

Inheritance
System.Object
ContentDataAnnotationsValidator
Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class ContentDataAnnotationsValidator : DataAnnotationsValidator<IContentData>
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.

Remarks

Returns System.ComponentModel.DataAnnotations.RequiredAttribute

Extension Methods