CollectionModelBinder<TElement>.CopyToModel(Object, IEnumerable<TElement>) Method

Definition

Adds values from sourceCollection to given 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))

Parameters

target
Object

Object into which values are copied.

sourceCollection
IEnumerable<TElement>

Collection of values retrieved from value providers. null if nothing was bound.

Applies to