ICollectionModelBinder.CanCreateInstance(Type) Método

Definición

Obtiene una indicación de si esta ICollectionModelBinder implementación puede crear o no un Object objeto asignable a targetType.

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

Parámetros

targetType
Type

Type del modelo.

Devoluciones

Boolean

True si esta ICollectionModelBinder implementación puede crear un Object objeto asignable a targetType; False en caso contrario.

Comentarios

Se necesita un valor devuelto verdadero para el enlace correcto del modelo si el modelo es inicialmente NULL.

Se aplica a