DataAnnotationsModelValidationFactory Delegate (System.Web.Mvc)

Switch View :
ScriptFree
.NET Framework Class Library
DataAnnotationsModelValidationFactory Delegate

Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

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

Visual Basic (Declaration)
Public Delegate Function DataAnnotationsModelValidationFactory ( _
	metadata As ModelMetadata, _
	context As ControllerContext, _
	attribute As ValidationAttribute _
) As ModelValidator
Visual Basic (Usage)
Dim instance As New DataAnnotationsModelValidationFactory(AddressOf HandlerMethod)
C#
public delegate ModelValidator DataAnnotationsModelValidationFactory(
	ModelMetadata metadata,
	ControllerContext context,
	ValidationAttribute attribute
)
Visual C++
public delegate ModelValidator^ DataAnnotationsModelValidationFactory(
	ModelMetadata^ metadata, 
	ControllerContext^ context, 
	ValidationAttribute^ attribute
)
JScript
JScript does not support delegates.
See Also

Reference