Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyValidationService

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    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
    Type Name Description
    PropertyEditorCollection propertyEditors
    IDataTypeService dataTypeService
    ILocalizedTextService textService
    IValueEditorCache valueEditorCache
    ICultureDictionary cultureDictionary
    ILanguageService languageService
    IOptions<ContentSettings> contentSettings

    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
    Type Name Description
    IContent content
    IProperty[] invalidProperties
    CultureImpact impact
    Returns
    Type Description
    bool
    View Source

    IsPropertyValid(IProperty, PropertyValidationContext)

    Gets a value indicating whether the property has valid values.

    Declaration
    public bool IsPropertyValid(IProperty property, PropertyValidationContext validationContext)
    Parameters
    Type Name Description
    IProperty property
    PropertyValidationContext validationContext
    Returns
    Type Description
    bool
    View Source

    ValidatePropertyValue(IPropertyType, object?, PropertyValidationContext)

    Validates a property value.

    Declaration
    public IEnumerable<ValidationResult> ValidatePropertyValue(IPropertyType propertyType, object? postedValue, PropertyValidationContext validationContext)
    Parameters
    Type Name Description
    IPropertyType propertyType
    object postedValue
    PropertyValidationContext validationContext
    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
    Type Name Description
    IDataEditor editor
    IDataType dataType
    object postedValue
    bool isRequired
    string validationRegExp
    string isRequiredMessage
    string validationRegExpMessage
    PropertyValidationContext validationContext
    Returns
    Type Description
    IEnumerable<ValidationResult>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX