共用方式為


FileInformationFactory.GetItemsAsync 方法

定義

多載

GetItemsAsync()

擷取 IStorageItemInformation 物件的集合,其中包含集合中所有專案的相關資訊。

GetItemsAsync(UInt32, UInt32)

擷取 IStorageItemInformation 物件的集合,其中包含集合中專案範圍的相關資訊。

GetItemsAsync()

擷取 IStorageItemInformation 物件的集合,其中包含集合中所有專案的相關資訊。

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

傳回

當此方法成功完成時,它會傳回FileInformationFolderInformation物件的IVectorView 類型 IVectorView) (清單。

屬性

另請參閱

適用於

GetItemsAsync(UInt32, UInt32)

擷取 IStorageItemInformation 物件的集合,其中包含集合中專案範圍的相關資訊。

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

參數

startIndex
UInt32

unsigned int

uint32_t

範圍中第一個專案之以零起始的索引。

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

要擷取資訊的最大專案數。

傳回

當此方法成功完成時,它會傳回FileInformationFolderInformation物件的IVectorView 類型 IVectorView) (清單。

屬性

另請參閱

適用於