ModelBindingMessageProvider ModelBindingMessageProvider ModelBindingMessageProvider ModelBindingMessageProvider Class

Definition

Provider for error messages the model binding system detects.

public ref class ModelBindingMessageProvider abstract
public abstract class ModelBindingMessageProvider
type ModelBindingMessageProvider = class
Public MustInherit Class ModelBindingMessageProvider
Inheritance
ModelBindingMessageProviderModelBindingMessageProviderModelBindingMessageProviderModelBindingMessageProvider
Derived

Constructors

ModelBindingMessageProvider() ModelBindingMessageProvider() ModelBindingMessageProvider() ModelBindingMessageProvider()

Initializes a new instance of the ModelBindingMessageProvider class.

ModelBindingMessageProvider(ModelBindingMessageProvider) ModelBindingMessageProvider(ModelBindingMessageProvider) ModelBindingMessageProvider(ModelBindingMessageProvider) ModelBindingMessageProvider(ModelBindingMessageProvider)

Initializes a new instance of the ModelBindingMessageProvider class based on originalProvider.

Properties

AttemptedValueIsInvalidAccessor AttemptedValueIsInvalidAccessor AttemptedValueIsInvalidAccessor AttemptedValueIsInvalidAccessor

Error message the model binding system adds when Exception is of type FormatException or OverflowException, value is known, and error is associated with a property.

MissingBindRequiredValueAccessor MissingBindRequiredValueAccessor MissingBindRequiredValueAccessor MissingBindRequiredValueAccessor

Error message the model binding system adds when a property with an associated BindRequiredAttribute is not bound.

MissingKeyOrValueAccessor MissingKeyOrValueAccessor MissingKeyOrValueAccessor MissingKeyOrValueAccessor

Error message the model binding system adds when either the key or the value of a KeyValuePair<TKey,TValue> is bound but not both.

MissingRequestBodyRequiredValueAccessor MissingRequestBodyRequiredValueAccessor MissingRequestBodyRequiredValueAccessor MissingRequestBodyRequiredValueAccessor

Error message the model binding system adds when no value is provided for the request body, but a value is required.

NonPropertyAttemptedValueIsInvalidAccessor NonPropertyAttemptedValueIsInvalidAccessor NonPropertyAttemptedValueIsInvalidAccessor NonPropertyAttemptedValueIsInvalidAccessor

Error message the model binding system adds when Exception is of type FormatException or OverflowException, value is known, and error is associated with a collection element or action parameter.

NonPropertyUnknownValueIsInvalidAccessor NonPropertyUnknownValueIsInvalidAccessor NonPropertyUnknownValueIsInvalidAccessor NonPropertyUnknownValueIsInvalidAccessor

Error message the model binding system adds when Exception is of type FormatException or OverflowException, value is unknown, and error is associated with a collection element or action parameter.

NonPropertyValueMustBeANumberAccessor NonPropertyValueMustBeANumberAccessor NonPropertyValueMustBeANumberAccessor NonPropertyValueMustBeANumberAccessor

Error message HTML and tag helpers add for client-side validation of numeric formats. Visible in the browser if the field for a float (for example) collection element or action parameter does not have a correctly-formatted value.

UnknownValueIsInvalidAccessor UnknownValueIsInvalidAccessor UnknownValueIsInvalidAccessor UnknownValueIsInvalidAccessor

Error message the model binding system adds when Exception is of type FormatException or OverflowException, value is unknown, and error is associated with a property.

ValueIsInvalidAccessor ValueIsInvalidAccessor ValueIsInvalidAccessor ValueIsInvalidAccessor

Fallback error message HTML and tag helpers display when a property is invalid but the ModelErrors have nullErrorMessages.

ValueMustBeANumberAccessor ValueMustBeANumberAccessor ValueMustBeANumberAccessor ValueMustBeANumberAccessor

Error message HTML and tag helpers add for client-side validation of numeric formats. Visible in the browser if the field for a float (for example) property does not have a correctly-formatted value.

ValueMustNotBeNullAccessor ValueMustNotBeNullAccessor ValueMustNotBeNullAccessor ValueMustNotBeNullAccessor

Error message the model binding system adds when a null value is bound to a non-Nullable property.

Applies to