ICollectionModelBinder.CanCreateInstance(Type) Method

Definition

Gets an indication whether or not this ICollectionModelBinder implementation can create an Object assignable to targetType.

public:
 bool CanCreateInstance(Type ^ targetType);
public bool CanCreateInstance (Type targetType);
abstract member CanCreateInstance : Type -> bool
Public Function CanCreateInstance (targetType As Type) As Boolean

Parameters

targetType
Type

Type of the model.

Returns

true if this ICollectionModelBinder implementation can create an Object assignable to targetType; false otherwise.

Remarks

A true return value is necessary for successful model binding if model is initially null.

Applies to