Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPropertyValidationService

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPropertyValidationService

    Methods

    View Source

    IsPropertyDataValid(IContent, out IProperty[], CultureImpact?)

    Validates the content item's properties pass validation rules

    Declaration
    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
    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
    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
    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