Lire en anglais Modifier

Partager via


ModelBinderErrorMessageProvider Delegate

Definition

Represents a method that provides a model-binding error message.

public delegate string ModelBinderErrorMessageProvider(ModelBindingExecutionContext modelBindingExecutionContext, ModelMetadata modelMetadata, object incomingValue);

Parameters

modelBindingExecutionContext
ModelBindingExecutionContext

The model binding execution context. If the model binding execution context is null, a new one is created and returned.

modelMetadata
ModelMetadata

The model metadata.

incomingValue
Object

An incoming value.

Return Value

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to