Aracılığıyla paylaş


CollectionModelBinder<TElement>.ConvertToCollectionType Yöntem

Tanım

öğesinin üyelerini targetTypecollectioniçeren bir Object atanabilir alır.

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

Parametreler

targetType
Type

Type öğesini seçin.

collection
IEnumerable<TElement>

Değer sağlayıcılarından alınan değerlerin koleksiyonu. null Eğer hiçbir şey bağlı değilse.

Döndürülenler

öğesine Object atanabilir targetType. null Eğer hiçbir şey bağlı değilse.

Açıklamalar

Bağlayıcıdan döndürülmeden önce ilişkili koleksiyonun manipüle edilmesini veya dönüştürülmesini sağlayan genişletilebilirlik noktası.

Şunlara uygulanır