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

Definition

Ruft einen Hinweis ab, ob diese ICollectionModelBinder Implementierung einen Object zuzuweisenden targetTypeerstellen kann.

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

Parameter

targetType
Type

Type des Modells.

Gibt zurück

true , wenn diese ICollectionModelBinder Implementierung ein zuweisbares ObjecttargetTypeerstellen kann, false andernfalls.

Gilt für: