Class RequiredPropertyValidator
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
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class RequiredPropertyValidator : IValidate<IContentData>, IValidate
Constructors
RequiredPropertyValidator(LocalizationService, IPropertyDefinitionRepository, IContentTypeRepository)
Initializes a new instance of the Required
Declaration
public RequiredPropertyValidator(LocalizationService localizationService, IPropertyDefinitionRepository propertyDefinitionRepository, IContentTypeRepository contentTypeRepository)
Parameters
Type | Name | Description |
---|---|---|
Localization |
localizationService | The localization service. |
IProperty |
propertyDefinitionRepository | The property definition repository. |
IContent |
contentTypeRepository | The content type repository. |
Methods
Validate(IContentData)
Validates the specified instance.
Declaration
public IEnumerable<ValidationError> Validate(IContentData instance)
Parameters
Type | Name | Description |
---|---|---|
IContent |
instance | The instance. |
Returns
Type | Description |
---|---|
System. |