DataAnnotationsModelValidationFactory Delegato

Definizione

Rappresenta il metodo che crea un'istanza DataAnnotationsModelValidatorProvider.Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

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

Parametri

metadata
ModelMetadata

Metadati del modello.The model metadata.

context
ModelBindingExecutionContext

Contesto.The context.

attribute
ValidationAttribute

Attributi di convalida.The validation attribute.

Valore restituito

ModelValidator

Metodi di estensione

GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.Gets an object that represents the method represented by the specified delegate.

Si applica a