Bagikan melalui


UIElementCollection.GetMany(UInt32, UIElement[]) Metode

Definisi

Mengambil beberapa elemen dalam satu pass melalui iterator.

public:
 virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <UIElement ^> ^ items) = IVector<UIElement ^>::GetMany;
uint32_t GetMany(uint32_t const& startIndex, winrt::array_view <UIElement const&> & items);
public uint GetMany(uint startIndex, UIElement[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As UIElement()) As UInteger

Parameter

startIndex
UInt32

unsigned int

uint32_t

Indeks untuk memulai pengambilan.

items
UIElement[]

Menyediakan tujuan untuk hasilnya. Ukuran ukuran array awal sebagai "kapasitas" untuk menentukan berapa banyak hasil yang harus diambil.

Mengembalikan

UInt32

unsigned int

uint32_t

Jumlah item yang diambil.

Penerapan

M:Windows.Foundation.Collections.IVector1.GetMany(System.UInt32,0[]) M:Windows.Foundation.Collections.IVector1.GetMany(unsigned int,0[]) M:Windows.Foundation.Collections.IVector1.GetMany(uint32_t,0[])

Keterangan

Jika Anda memprogram menggunakan C# atau Microsoft Visual Basic, lihat CopyTo.

Berlaku untuk