TypeConverterModelBinder 类
定义
将浏览器请求映射到数据对象。Maps a browser request to a data object. 当模型绑定需要通过 .NET Framework 类型转换器转换时使用此类型。This type is used when model binding requires conversions using a .NET Framework type converter.
public ref class TypeConverterModelBinder sealed : System::Web::ModelBinding::IModelBinder
public sealed class TypeConverterModelBinder : System.Web.ModelBinding.IModelBinder
type TypeConverterModelBinder = class
interface IModelBinder
Public NotInheritable Class TypeConverterModelBinder
Implements IModelBinder
- 继承
-
TypeConverterModelBinder
- 实现
构造函数
| TypeConverterModelBinder() |
初始化 TypeConverterModelBinder 类的新实例。Initializes a new instance of the TypeConverterModelBinder class. |
方法
| BindModel(ModelBindingExecutionContext, ModelBindingContext) |
使用指定的控制器上下文和绑定上下文来绑定模型。Binds the model by using the specified controller context and binding context. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |