Dela via


CollectionModelBinder<TElement>.CreateEmptyCollection(Type) Method

Definition

Create an Object assignable to targetType.

protected:
 virtual System::Object ^ CreateEmptyCollection(Type ^ targetType);
protected virtual object CreateEmptyCollection (Type targetType);
abstract member CreateEmptyCollection : Type -> obj
override this.CreateEmptyCollection : Type -> obj
Protected Overridable Function CreateEmptyCollection (targetType As Type) As Object

Parameters

targetType
Type

Type of the model.

Returns

An Object assignable to targetType.

Remarks

Called when creating a default 'empty' model for a top level bind.

Applies to