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
- validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>
- attribute
Type: System.ComponentModel.DataAnnotations.ValidationAttribute
Return Value
Type: System.Web.Http.Validation.ModelValidator