CollectionModelBinder<TElement>.CreateOrReplaceCollection 方法

定义

为派生类提供了一种操作集合的类(在从绑定器返回它之前)。

protected:
 virtual bool CreateOrReplaceCollection(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext, System::Collections::Generic::IList<TElement> ^ newCollection);
protected virtual bool CreateOrReplaceCollection (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext, System.Collections.Generic.IList<TElement> newCollection);
abstract member CreateOrReplaceCollection : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Collections.Generic.IList<'Element> -> bool
override this.CreateOrReplaceCollection : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Collections.Generic.IList<'Element> -> bool
Protected Overridable Function CreateOrReplaceCollection (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext, newCollection As IList(Of TElement)) As Boolean

参数

modelBindingExecutionContext
ModelBindingExecutionContext

该执行上下文。

bindingContext
ModelBindingContext

绑定上下文。

newCollection
IList<TElement>

新集合。

返回

Boolean

在所有情况下均为 true

适用于