Bagikan melalui


FolderInformation.GetItemsAsync Metode

Definisi

Overload

GetItemsAsync()

Mengambil semua item dari folder saat ini.

GetItemsAsync(UInt32, UInt32)

Mengambil rentang item dari folder saat ini.

GetItemsAsync()

Mengambil semua item dari folder saat ini.

public:
 virtual IAsyncOperation<IVectorView<IStorageItem ^> ^> ^ GetItemsAsync() = GetItemsAsync;
/// [Windows.Foundation.Metadata.Overload("GetItemsAsyncOverloadDefaultStartAndCount")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IStorageItem>> GetItemsAsync();
[Windows.Foundation.Metadata.Overload("GetItemsAsyncOverloadDefaultStartAndCount")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync();
function getItemsAsync()
Public Function GetItemsAsync () As IAsyncOperation(Of IReadOnlyList(Of IStorageItem))

Mengembalikan

Ketika metode ini berhasil diselesaikan, metode ini mengembalikan daftar (ketik IVectorView) item.

Penerapan

Atribut

Lihat juga

Berlaku untuk

GetItemsAsync(UInt32, UInt32)

Mengambil rentang item dari folder saat ini.

public:
 virtual IAsyncOperation<IVectorView<IStorageItem ^> ^> ^ GetItemsAsync(unsigned int startIndex, unsigned int maxItemsToRetrieve) = GetItemsAsync;
/// [Windows.Foundation.Metadata.Overload("GetItemsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IStorageItem>> GetItemsAsync(uint32_t const& startIndex, uint32_t const& maxItemsToRetrieve);
[Windows.Foundation.Metadata.Overload("GetItemsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync(uint startIndex, uint maxItemsToRetrieve);
function getItemsAsync(startIndex, maxItemsToRetrieve)
Public Function GetItemsAsync (startIndex As UInteger, maxItemsToRetrieve As UInteger) As IAsyncOperation(Of IReadOnlyList(Of IStorageItem))

Parameter

startIndex
UInt32

unsigned int

uint32_t

Indeks berbasis nol dari item pertama dalam rentang.

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

Jumlah maksimum item yang akan diambil.

Mengembalikan

Ketika metode ini berhasil diselesaikan, metode ini mengembalikan daftar (ketik IVectorView) item.

Penerapan

M:Windows.Storage.Search.IStorageFolderQueryOperations.GetItemsAsync(System.UInt32,System.UInt32) M:Windows.Storage.Search.IStorageFolderQueryOperations.GetItemsAsync(unsigned int,unsigned int) M:Windows.Storage.Search.IStorageFolderQueryOperations.GetItemsAsync(uint32_t,uint32_t)
Atribut

Lihat juga

Berlaku untuk