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

Class RequiredPropertyValidator

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates that all required properties are set.

Inheritance
System.Object
RequiredPropertyValidator
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.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration]
public class RequiredPropertyValidator : IValidate<IContentData>, IValidate

Constructors

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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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