Aracılığıyla paylaş


ArrayModelBinder<TElement>.ConvertToCollectionType Yöntem

Tanım

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

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

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

için ObjecttargetTypeatanabilir. null Eğer hiçbir şey bağlı değilse.

Şunlara uygulanır