DataAnnotationsModelValidationFactory Delegate

Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

Namespace:  System.Web.Http.Validation.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Delegate Function DataAnnotationsModelValidationFactory ( _
    validatorProviders As IEnumerable(Of ModelValidatorProvider), _
    attribute As ValidationAttribute _
) As ModelValidator
'Usage
Dim instance As New DataAnnotationsModelValidationFactory(AddressOf HandlerMethod)
public delegate ModelValidator DataAnnotationsModelValidationFactory(
    IEnumerable<ModelValidatorProvider> validatorProviders,
    ValidationAttribute attribute
)
public delegate ModelValidator^ DataAnnotationsModelValidationFactory(
    IEnumerable<ModelValidatorProvider^>^ validatorProviders, 
    ValidationAttribute^ attribute
)
type DataAnnotationsModelValidationFactory = 
    delegate of 
        validatorProviders:IEnumerable<ModelValidatorProvider> * 
        attribute:ValidationAttribute -> ModelValidator
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

Return Value

Type: System.Web.Http.Validation.ModelValidator

See Also

Reference

System.Web.Http.Validation.Providers Namespace