Share via


FileInformationFactory.GetFilesAsync 方法

定义

重载

GetFilesAsync()

检索 FileInformation 对象的集合,这些对象包含有关集合中所有 StorageFile 对象的信息。

GetFilesAsync(UInt32, UInt32)

检索 FileInformation 对象的集合,这些对象包含有关集合中 一系列 StorageFile 对象的信息。

GetFilesAsync()

检索 FileInformation 对象的集合,这些对象包含有关集合中所有 StorageFile 对象的信息。

public:
 virtual IAsyncOperation<IVectorView<FileInformation ^> ^> ^ GetFilesAsync() = GetFilesAsync;
/// [Windows.Foundation.Metadata.Overload("GetFilesAsyncDefaultStartAndCount")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<FileInformation>> GetFilesAsync();
[Windows.Foundation.Metadata.Overload("GetFilesAsyncDefaultStartAndCount")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<FileInformation>> GetFilesAsync();
function getFilesAsync()
Public Function GetFilesAsync () As IAsyncOperation(Of IReadOnlyList(Of FileInformation))

返回

此方法成功完成后,它将返回 fileInformation 对象的 IVectorView 类型 (列表) 。

属性

另请参阅

适用于

GetFilesAsync(UInt32, UInt32)

检索 FileInformation 对象的集合,这些对象包含有关集合中 一系列 StorageFile 对象的信息。

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

参数

startIndex
UInt32

unsigned int

uint32_t

范围中第一个 StorageFile 的从零开始的索引。

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

要检索其信息的最大 StorageFile 对象数。

返回

此方法成功完成后,它将返回 fileInformation 对象的 IVectorView 类型 (列表) 。

属性

另请参阅

适用于