Condividi tramite


DataAnnotationsValidatableObjectAdapterFactory Delegato

Definizione

Rappresenta una factory per i validator basati sull'interfaccia IValidatableObject.

public delegate System::Web::ModelBinding::ModelValidator ^ DataAnnotationsValidatableObjectAdapterFactory(ModelMetadata ^ metadata, ModelBindingExecutionContext ^ context);
public delegate System.Web.ModelBinding.ModelValidator DataAnnotationsValidatableObjectAdapterFactory(ModelMetadata metadata, ModelBindingExecutionContext context);
type DataAnnotationsValidatableObjectAdapterFactory = delegate of ModelMetadata * ModelBindingExecutionContext -> ModelValidator
Public Delegate Function DataAnnotationsValidatableObjectAdapterFactory(metadata As ModelMetadata, context As ModelBindingExecutionContext) As ModelValidator 

Parametri

metadata
ModelMetadata

Metadati del modello.

context
ModelBindingExecutionContext

Contesto.

Valore restituito

Metodi di estensione

GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.

Si applica a