Udostępnij za pośrednictwem


DataAnnotationsModelValidationFactory Delegate

Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Delegate Function DataAnnotationsModelValidationFactory ( _
    metadata As ModelMetadata, _
    context As ControllerContext, _
    attribute As ValidationAttribute _
) As ModelValidator
public delegate ModelValidator DataAnnotationsModelValidationFactory(
    ModelMetadata metadata,
    ControllerContext context,
    ValidationAttribute attribute
)
public delegate ModelValidator^ DataAnnotationsModelValidationFactory(
    ModelMetadata^ metadata, 
    ControllerContext^ context, 
    ValidationAttribute^ attribute
)

Parameters

Return Value

Type: System.Web.Mvc.ModelValidator

See Also

Reference

System.Web.Mvc Namespace