Udostępnij za pośrednictwem


DictionaryModelBinder<TKey,TValue>.CanCreateInstance(Type) Metoda

Definicja

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

public:
 override bool CanCreateInstance(Type ^ targetType);
public override bool CanCreateInstance (Type targetType);
override this.CanCreateInstance : Type -> bool
Public Overrides Function CanCreateInstance (targetType As Type) As Boolean

Parametry

targetType
Type

Type modelu.

Zwraca

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

Dotyczy