ModelBindingExecutionContext 类

定义

封装模型绑定系统所需的模型绑定系统外部的所有信息。

public ref class ModelBindingExecutionContext
public class ModelBindingExecutionContext
type ModelBindingExecutionContext = class
Public Class ModelBindingExecutionContext
继承
ModelBindingExecutionContext

构造函数

名称 说明
ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary)

使用 HTTP 上下文和模型状态初始化类的新实例 ModelBindingExecutionContext

属性

名称 说明
HttpContext

获取 HTTP 上下文。

ModelState

获取模型状态。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetService<TService>()

获取一个对象,该对象包含用于模型绑定的值,以及使用 PublishService<TService>(TService) 该方法存储的值。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
PublishService<TService>(TService)

存储一个对象,该对象包含用于模型绑定的值,以及使用 GetService<TService>() 该方法访问的值。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
TryGetService<TService>()

获取一个对象,该对象包含用于模型绑定的值,以及使用 PublishService<TService>(TService) 该方法存储的值。

适用于