Lire en anglais Modifier

Partager via


DataAnnotationsValidatableObjectAdapterFactory Delegate

Definition

Represents a factory for validators that are based on the IValidatableObject interface.

C#
public delegate System.Web.ModelBinding.ModelValidator DataAnnotationsValidatableObjectAdapterFactory(ModelMetadata metadata, ModelBindingExecutionContext context);

Parameters

metadata
ModelMetadata

The model metadata.

context
ModelBindingExecutionContext

The context.

Return Value

Extension Methods

GetMethodInfo(Delegate)

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

Applies to

Produit Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1