共用方式為


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 類型 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 類型 IVectorView) (清單。

屬性

另請參閱

適用於