Compartilhar via


ArrayModelBinder<TElement>.ConvertToCollectionType Método

Definição

Obtém um Object atribuível a targetType que contém membros de collection.

protected:
 override System::Object ^ ConvertToCollectionType(Type ^ targetType, System::Collections::Generic::IEnumerable<TElement> ^ collection);
protected override object ConvertToCollectionType (Type targetType, System.Collections.Generic.IEnumerable<TElement> collection);
protected override object? ConvertToCollectionType (Type targetType, System.Collections.Generic.IEnumerable<TElement?> collection);
override this.ConvertToCollectionType : Type * seq<'Element> -> obj
Protected Overrides Function ConvertToCollectionType (targetType As Type, collection As IEnumerable(Of TElement)) As Object

Parâmetros

targetType
Type

Type do modelo.

collection
IEnumerable<TElement>

Coleção de valores recuperados de provedores de valor. null se nada estivesse associado.

Retornos

Um Object atribuível a targetType. null se nada estivesse associado.

Aplica-se a