Share via


IModelBindingMessageProvider Interface

Definition

Provider for error messages the model binding system detects.

public interface class IModelBindingMessageProvider
public interface IModelBindingMessageProvider
type IModelBindingMessageProvider = interface
Public Interface IModelBindingMessageProvider
Derived

Properties

AttemptedValueIsInvalidAccessor

Error message the model binding system adds when Exception is of type FormatException or OverflowException and value is known.

MissingBindRequiredValueAccessor

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

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.

UnknownValueIsInvalidAccessor

Error message the model binding system adds when Exception is of type FormatException or OverflowException and value is unknown.

ValueIsInvalidAccessor

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

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 property (for example) does not have a correctly-formatted value.

ValueMustNotBeNullAccessor

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

Applies to