DictionaryModelBinder<TKey,TValue>.CanCreateInstance(Type) 方法

定義

取得這個 ICollectionModelBinder 實作是否可以建立可指派給 targetTypeObject 指示。

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

參數

targetType
Type

Type 模型的 。

傳回

true如果這個 ICollectionModelBinder 實作可以建立可指派給 targetType 的 ,則為 Objectfalse 否則為 。

適用於