November Happy Hour will be moved to Thursday December 5th.

Class RequiredPropertyValidator

Validates that all required properties are set.

Inheritance
System.Object
RequiredPropertyValidator
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class RequiredPropertyValidator : Object, IValidate<IContentData>, IValidate

Constructors

RequiredPropertyValidator(LocalizationService, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, IContentTypeRepository, IPropertyBlockBuilder)

Initializes a new instance of the RequiredPropertyValidator class.

Declaration
public RequiredPropertyValidator(LocalizationService localizationService, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository, IContentTypeRepository contentTypeRepository, IPropertyBlockBuilder propertyBlockBuilder)
Parameters
Type Name Description
LocalizationService localizationService
IPropertyDefinitionRepository propertyDefinitionRepository
IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository
IContentTypeRepository contentTypeRepository
IPropertyBlockBuilder propertyBlockBuilder

Methods

Validate(IContentData)

Validates the specified instance.

Declaration
public IEnumerable<ValidationError> Validate(IContentData instance)
Parameters
Type Name Description
IContentData instance

The instance.

Returns
Type Description
System.Collections.Generic.IEnumerable<ValidationError>

Implements

Extension Methods