Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the DataAnnotationsModelValidator class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
metadata As ModelMetadata, _
context As ControllerContext, _
attribute As ValidationAttribute _
)
public DataAnnotationsModelValidator(
ModelMetadata metadata,
ControllerContext context,
ValidationAttribute attribute
)
public:
DataAnnotationsModelValidator(
ModelMetadata^ metadata,
ControllerContext^ context,
ValidationAttribute^ attribute
)
Parameters
- metadata
Type: System.Web.Mvc.ModelMetadata
The metadata for the model.
- context
Type: System.Web.Mvc.ControllerContext
The controller context for the model.
- attribute
Type: System.ComponentModel.DataAnnotations.ValidationAttribute
The validation attribute for the model.