CollectionModelBinder<TElement>.CopyToModel 方法

定义

将 中的 sourceCollection 值添加到给定 target的 。

protected:
 virtual void CopyToModel(System::Object ^ target, System::Collections::Generic::IEnumerable<TElement> ^ sourceCollection);
protected virtual void CopyToModel (object target, System.Collections.Generic.IEnumerable<TElement> sourceCollection);
protected virtual void CopyToModel (object target, System.Collections.Generic.IEnumerable<TElement?> sourceCollection);
abstract member CopyToModel : obj * seq<'Element> -> unit
override this.CopyToModel : obj * seq<'Element> -> unit
Protected Overridable Sub CopyToModel (target As Object, sourceCollection As IEnumerable(Of TElement))

参数

target
Object

Object 将值复制到其中。

sourceCollection
IEnumerable<TElement>

从值提供程序检索的值的集合。 null 如果未绑定任何内容,则为 。

适用于