Share via


Controller.ValidateModel 方法

定义

重载

ValidateModel(Object, String)

使用 HTML 前缀验证指定的模型实例。

ValidateModel(Object)

验证指定的模型实例。

ValidateModel(Object, String)

使用 HTML 前缀验证指定的模型实例。

protected internal void ValidateModel (object model, string prefix);
member this.ValidateModel : obj * string -> unit
Protected Friend Sub ValidateModel (model As Object, prefix As String)

参数

model
Object

要验证的模型。

prefix
String

在模型提供程序中查找值时要使用的前缀。

适用于

ValidateModel(Object)

验证指定的模型实例。

protected internal void ValidateModel (object model);
member this.ValidateModel : obj -> unit
Protected Friend Sub ValidateModel (model As Object)

参数

model
Object

要验证的模型。

适用于