Share via


ICollectionModelBinder.CanCreateInstance(Type) メソッド

定義

この ICollectionModelBinder 実装で に割り当て可能な を Object 作成できるかどうかを示す値を targetType取得します。

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実装で に割り当て可能な をObjecttargetTypefalse作成できる場合は 。それ以外の場合は 。

注釈

trueモデルが最初nullに である場合、モデルバインドを成功させるには戻り値が必要です。

適用対象