CollectionModelBinder<TElement> 类
定义
将浏览器请求映射到集合。Maps a browser request to a collection.
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
集合的类型。The type of the collection.
- 继承
-
CollectionModelBinder<TElement>
- 派生
- 实现
构造函数
| CollectionModelBinder<TElement>() |
初始化 CollectionModelBinder<TElement> 类的新实例。Initializes a new instance of the CollectionModelBinder<TElement> class. |
方法
| BindModel(ModelBindingExecutionContext, ModelBindingContext) |
使用指定的执行上下文和绑定上下文来绑定模型。Binds the model by using the specified execution context and binding context. |
| CreateOrReplaceCollection(ModelBindingExecutionContext, ModelBindingContext, IList<TElement>) |
为派生类提供了一种操作集合的类(在从绑定器返回它之前)。Provides a way for derived classes to manipulate the collection before returning it from the binder. |
| 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) |