ICollectionModelBinder.CanCreateInstance(Type) Méthode

Définition

Obtient une indication indiquant si cette ICollectionModelBinder implémentation peut ou non créer un Object assignable à targetType.

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

Paramètres

targetType
Type

Type du modèle.

Retours

true si cette ICollectionModelBinder implémentation peut créer un Object assignable à targetType; false sinon.

Remarques

Une true valeur de retour est nécessaire pour une liaison de modèle réussie si le modèle est initialement null.

S’applique à