共用方式為


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 如果未系結任何內容,則為 。

適用於