Controller.ValidateModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ValidateModel(Object, String) |
Validates the specified model instance using an HTML prefix. |
ValidateModel(Object) |
Validates the specified model instance. |
ValidateModel(Object, String)
Validates the specified model instance using an HTML prefix.
protected internal void ValidateModel (object model, string prefix);
member this.ValidateModel : obj * string -> unit
Protected Friend Sub ValidateModel (model As Object, prefix As String)
Parameters
- model
- Object
The model to validate.
- prefix
- String
The prefix to use when looking up values in the model provider.
Applies to
ValidateModel(Object)
Validates the specified model instance.
protected internal void ValidateModel (object model);
member this.ValidateModel : obj -> unit
Protected Friend Sub ValidateModel (model As Object)
Parameters
- model
- Object
The model to validate.