View Source
Class PropertyValidationService
Assembly: Umbraco.Core.dll
Syntax
public class PropertyValidationService : IPropertyValidationService
Constructors
View Source
PropertyValidationService(PropertyEditorCollection, IDataTypeService, ILocalizedTextService, IValueEditorCache, ICultureDictionary, ILanguageService, IOptions<ContentSettings>)
Declaration
public PropertyValidationService(PropertyEditorCollection propertyEditors, IDataTypeService dataTypeService, ILocalizedTextService textService, IValueEditorCache valueEditorCache, ICultureDictionary cultureDictionary, ILanguageService languageService, IOptions<ContentSettings> contentSettings)
Parameters
Methods
View Source
IsPropertyDataValid(IContent, out IProperty[], CultureImpact?)
Validates the content item's properties pass validation rules
Declaration
public bool IsPropertyDataValid(IContent content, out IProperty[] invalidProperties, CultureImpact? impact)
Parameters
Returns
View Source
IsPropertyValid(IProperty, PropertyValidationContext)
Gets a value indicating whether the property has valid values.
Declaration
public bool IsPropertyValid(IProperty property, PropertyValidationContext validationContext)
Parameters
Returns
View Source
ValidatePropertyValue(IPropertyType, object?, PropertyValidationContext)
Validates a property value.
Declaration
public IEnumerable<ValidationResult> ValidatePropertyValue(IPropertyType propertyType, object? postedValue, PropertyValidationContext validationContext)
Parameters
Returns
| Type |
Description |
| IEnumerable<ValidationResult> |
|
View Source
ValidatePropertyValue(IDataEditor, IDataType, object?, bool, string?, string?, string?, PropertyValidationContext)
Validates a property value.
Declaration
public IEnumerable<ValidationResult> ValidatePropertyValue(IDataEditor editor, IDataType dataType, object? postedValue, bool isRequired, string? validationRegExp, string? isRequiredMessage, string? validationRegExpMessage, PropertyValidationContext validationContext)
Parameters
Returns
| Type |
Description |
| IEnumerable<ValidationResult> |
|