DataAnnotationsValidatableObjectAdapterFactory Delegado

Definición

Representa un generador de validadores basados en la interfaz IValidatableObject.Represents a factory for validators that are based on the IValidatableObject interface.

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 

Parámetros

metadata
ModelMetadata

Metadatos del modelo.The model metadata.

context
ModelBindingExecutionContext

Contexto.The context.

Valor devuelto

ModelValidator

Métodos de extensión

GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a