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 SourceValueSetValidator(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 SourceExcludeFields
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
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
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
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
ValidIndexCategories
Declaration
protected virtual IEnumerable<string>? ValidIndexCategories { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IEnumerable<System.String>> |
Methods
View SourceValidate(ValueSet)
Declaration
public virtual ValueSetValidationResult Validate(ValueSet valueSet)
Parameters
Type | Name | Description |
---|---|---|
ValueSet | valueSet |
Returns
Type | Description |
---|---|
ValueSetValidationResult |