ValidationOptions Class

Definition

Specifies configuration options for the validation system.

public ref class ValidationOptions
public class ValidationOptions
type ValidationOptions = class
Public Class ValidationOptions
Inheritance
ValidationOptions

Constructors

Name Description
ValidationOptions()

Properties

Name Description
LocalizerProvider

Gets or sets a delegate that resolves the IStringLocalizer used to localize validation display names and error messages for a given declaring type.

MaxDepth

Gets or sets the maximum depth for validation of nested objects.

MessageKeyProvider

Gets or sets a delegate that computes the resource key used to look up a localized validation message.

Resolvers

Gets the list of resolvers that provide validation metadata for types and parameters. Resolvers are processed in order, with the first resolver that provides a non-null result being used.

Methods

Name Description
TryGetValidatableParameterInfo(ParameterInfo, IValidatableParameterInfo)

Attempts to get validation information for the specified parameter.

TryGetValidatableTypeInfo(Type, IValidatableTypeInfo)

Attempts to get validation information for the specified type.

Applies to