Aracılığıyla paylaş


DictionaryModelBinder<TKey,TValue>.CanCreateInstance(Type) Yöntem

Tanım

Bu ICollectionModelBinder uygulamanın için atanabilir targetTypeoluşturup oluşturamayacağını gösteren bir Object gösterge alır.

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

Parametreler

targetType
Type

Type öğesini seçin.

Döndürülenler

truebu ICollectionModelBinder uygulama için atanabilir targetTypebir Object oluşturabiliyorsa; false aksi takdirde.

Şunlara uygulanır