DataAnnotationsValidatableObjectAdapterFactory Delegate
Provides a factory for validators that are based on IValidatableObject.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Delegate Function DataAnnotationsValidatableObjectAdapterFactory ( _
validatorProviders As IEnumerable(Of ModelValidatorProvider) _
) As ModelValidator
'Usage
Dim instance As New DataAnnotationsValidatableObjectAdapterFactory(AddressOf HandlerMethod)
public delegate ModelValidator DataAnnotationsValidatableObjectAdapterFactory(
IEnumerable<ModelValidatorProvider> validatorProviders
)
public delegate ModelValidator^ DataAnnotationsValidatableObjectAdapterFactory(
IEnumerable<ModelValidatorProvider^>^ validatorProviders
)
type DataAnnotationsValidatableObjectAdapterFactory =
delegate of
validatorProviders:IEnumerable<ModelValidatorProvider> -> ModelValidator
JScript supports the use of delegates, but not the declaration of new ones.
Parameters
- validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>
Return Value
Type: System.Web.Http.Validation.ModelValidator