CollectionModelBinder<TElement> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将浏览器请求映射到集合。
generic <typename TElement>
public ref class CollectionModelBinder : System::Web::ModelBinding::IModelBinder
public class CollectionModelBinder<TElement> : System.Web.ModelBinding.IModelBinder
type CollectionModelBinder<'Element> = class
interface IModelBinder
Public Class CollectionModelBinder(Of TElement)
Implements IModelBinder
类型参数
- TElement
集合的类型。
- 继承
-
CollectionModelBinder<TElement>
- 派生
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| CollectionModelBinder<TElement>() |
初始化 CollectionModelBinder<TElement> 类的新实例。 |
方法
| 名称 | 说明 |
|---|---|
| BindModel(ModelBindingExecutionContext, ModelBindingContext) |
使用指定的执行上下文和绑定上下文绑定模型。 |
| CreateOrReplaceCollection(ModelBindingExecutionContext, ModelBindingContext, IList<TElement>) |
为派生类提供一种方法,用于在从绑定器返回集合之前对其进行操作。 |
| Equals(Object) |
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
用作默认哈希函数。 (继承自 Object) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| ToString() |
返回一个表示当前对象的字符串。 (继承自 Object) |