Udostępnij przez


CollectionModelBinder<TElement>.CanCreateInstance(Type) Metoda

Definicja

Pobiera wskazanie, czy ta ICollectionModelBinder implementacja może utworzyć Object możliwość przypisania do elementu targetType.

public:
 virtual bool CanCreateInstance(Type ^ targetType);
public virtual bool CanCreateInstance (Type targetType);
abstract member CanCreateInstance : Type -> bool
override this.CanCreateInstance : Type -> bool
Public Overridable Function CanCreateInstance (targetType As Type) As Boolean

Parametry

targetType
Type

Type modelu.

Zwraca

true jeśli ta ICollectionModelBinder implementacja Object może utworzyć możliwość przypisania do targetType; false w przeciwnym razie.

Implementuje

Dotyczy