ICollectionModelBinder.CanCreateInstance(Type) 方法

定義

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

public:
 bool CanCreateInstance(Type ^ targetType);
public bool CanCreateInstance (Type targetType);
abstract member CanCreateInstance : Type -> bool
Public Function CanCreateInstance (targetType As Type) As Boolean

參數

targetType
Type

Type 模型的 。

傳回

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

備註

如果模型一開始 null 是 ,則成功模型系結需要傳 true 回值。

適用於