DataAnnotationsModelValidationFactory Delegate

 

Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

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

Syntax

public delegate ModelValidator DataAnnotationsModelValidationFactory(
    ModelMetadata metadata,
    ControllerContext context,
    ValidationAttribute attribute
)
public delegate ModelValidator^ DataAnnotationsModelValidationFactory(
    ModelMetadata^ metadata,
    ControllerContext^ context,
    ValidationAttribute^ attribute
)
type DataAnnotationsModelValidationFactory = 
    delegate of 
        metadata:ModelMetadata *
        context:ControllerContext *
        attribute:ValidationAttribute -> ModelValidator
Public Delegate Function DataAnnotationsModelValidationFactory (
    metadata As ModelMetadata,
    context As ControllerContext,
    attribute As ValidationAttribute
) As ModelValidator

Return Value

Type: System.Web.Mvc.ModelValidator

See Also

System.Web.Mvc Namespace

Return to top