Search Results for

    Show / Hide Table of Contents
    View Source

    Class ValueSetValidator

    Performing basic validation of a value set

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Examine
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ValueSetValidator : IValueSetValidator

    Constructors

    View Source

    ValueSetValidator(Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>)

    Declaration
    public ValueSetValidator(IEnumerable<string>? includeItemTypes, IEnumerable<string>? excludeItemTypes, IEnumerable<string>? includeFields, IEnumerable<string>? excludeFields)
    Parameters
    Type Name Description
    System.Nullable<IEnumerable<System.String>> includeItemTypes
    System.Nullable<IEnumerable<System.String>> excludeItemTypes
    System.Nullable<IEnumerable<System.String>> includeFields
    System.Nullable<IEnumerable<System.String>> excludeFields

    Properties

    View Source

    ExcludeFields

    Optional exclusion list of index fields

    Declaration
    public IEnumerable<string>? ExcludeFields { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    Remarks

    If specified, all fields matching these field names will be filtered from the

    View Source

    ExcludeItemTypes

    Optional exclusion list of content types to ignore

    Declaration
    public IEnumerable<string>? ExcludeItemTypes { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    Remarks

    Any content type alias matched in this will not be included in the index

    View Source

    IncludeFields

    Optional inclusion list of index fields to index

    Declaration
    public IEnumerable<string>? IncludeFields { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    Remarks

    If specified, all other fields in a will be filtered

    View Source

    IncludeItemTypes

    Optional inclusion list of content types to index

    Declaration
    public IEnumerable<string>? IncludeItemTypes { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    Remarks

    All other types will be ignored if they do not match this list

    View Source

    ValidIndexCategories

    Declaration
    protected virtual IEnumerable<string>? ValidIndexCategories { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>

    Methods

    View Source

    Validate(ValueSet)

    Declaration
    public virtual ValueSetValidationResult Validate(ValueSet valueSet)
    Parameters
    Type Name Description
    ValueSet valueSet
    Returns
    Type Description
    ValueSetValidationResult
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ValueSetValidator(Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>)
    • Properties
      • ExcludeFields
      • ExcludeItemTypes
      • IncludeFields
      • IncludeItemTypes
      • ValidIndexCategories
    • Methods
      • Validate(ValueSet)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX