Compartilhar via


CollectionModelBinder<TElement>.CanCreateInstance(Type) Método

Definição

Obtém uma indicação se essa ICollectionModelBinder implementação pode ou não criar um Object atribuível a targetType.

public:
 virtual bool CanCreateInstance(Type ^ targetType);
public virtual bool CanCreateInstance (Type targetType);
abstract member CanCreateInstance : Type -> bool
override this.CanCreateInstance : Type -> bool
Public Overridable Function CanCreateInstance (targetType As Type) As Boolean

Parâmetros

targetType
Type

Type do modelo.

Retornos

true se essa ICollectionModelBinder implementação puder criar um Object atribuível a targetType; false caso contrário, .

Implementações

Aplica-se a