Delegate DataAnnotationsModelValidationFactory
- Namespace
- System.Web.Http.Validation.Providers
- Assembly
- System.Web.Http.dll
Represents the method that creates a DataAnnotationsModelValidatorProvider instance.
public delegate ModelValidator DataAnnotationsModelValidationFactory(IEnumerable<ModelValidatorProvider> validatorProviders, ValidationAttribute attribute)
Parameters
validatorProviders
IEnumerable<ModelValidatorProvider>- Represents the method that creates a instance.
attribute
ValidationAttribute- Represents the method that creates a instance.
Returns
- ModelValidator
- Represents the method that creates a instance.
Constructors
DataAnnotationsModelValidationFactory(object, nint)
public DataAnnotationsModelValidationFactory(object @object, nint method)
Parameters
Methods
BeginInvoke(IEnumerable<ModelValidatorProvider>, ValidationAttribute, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(IEnumerable<ModelValidatorProvider> validatorProviders, ValidationAttribute attribute, AsyncCallback callback, object @object)
Parameters
validatorProviders
IEnumerable<ModelValidatorProvider>attribute
ValidationAttributecallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual ModelValidator EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(IEnumerable<ModelValidatorProvider>, ValidationAttribute)
public virtual ModelValidator Invoke(IEnumerable<ModelValidatorProvider> validatorProviders, ValidationAttribute attribute)
Parameters
validatorProviders
IEnumerable<ModelValidatorProvider>attribute
ValidationAttribute