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 (类型) 列表。

属性

另请参阅

适用于

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 (类型) 列表。

属性

另请参阅

适用于