Try our conversational search powered by Generative AI!

Interface IPropertyValidationDefinitionProvider

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Service that provides access to currently available property validations.

Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface IPropertyValidationDefinitionProvider

Methods

Get(String, Type)

Gets the PropertyValidationDefinition associated with the provided name and data type.

Declaration
PropertyValidationDefinition Get(string name, Type dataType)
Parameters
Type Name Description
System.String name

The name of the property validation.

System.Type dataType

The property data type that this definition should apply to.

Returns
Type Description
PropertyValidationDefinition

A matching PropertyValidationDefinition or null if no matching definition was found.

List()

List all property validation definitions.

Declaration
IEnumerable<PropertyValidationDefinition> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<PropertyValidationDefinition>

A list of all property validation definitions.

Extension Methods