閱讀英文

共用方式為


FolderInformation.GetFilesAsync 方法

定義

多載

GetFilesAsync()

從目前資料夾擷取所有檔案。

GetFilesAsync(CommonFileQuery)

根據一般資料夾查詢,從目前資料夾中擷取檔案。

GetFilesAsync(CommonFileQuery, UInt32, UInt32)

根據一般檔案查詢,從目前資料夾擷取一系列檔案。

GetFilesAsync()

從目前資料夾擷取所有檔案。

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

傳回

這個方法成功完成時,它會傳回資料夾中StorageFile物件的iVectorView 類型) 清單 (。

實作

屬性

另請參閱

適用於

GetFilesAsync(CommonFileQuery)

根據一般資料夾查詢,從目前資料夾中擷取檔案。

public:
 virtual IAsyncOperation<IVectorView<StorageFile ^> ^> ^ GetFilesAsync(CommonFileQuery query) = GetFilesAsync;
/// [Windows.Foundation.Metadata.Overload("GetFilesAsyncOverloadDefaultStartAndCount")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<StorageFile>> GetFilesAsync(CommonFileQuery const& query);
[Windows.Foundation.Metadata.Overload("GetFilesAsyncOverloadDefaultStartAndCount")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query);
function getFilesAsync(query)
Public Function GetFilesAsync (query As CommonFileQuery) As IAsyncOperation(Of IReadOnlyList(Of StorageFile))

參數

query
CommonFileQuery

常見的檔案查詢。

傳回

這個方法成功完成時,它會傳回資料夾中StorageFile物件的iVectorView 類型) 清單 (。

實作

屬性

另請參閱

適用於

GetFilesAsync(CommonFileQuery, UInt32, UInt32)

根據一般檔案查詢,從目前資料夾擷取一系列檔案。

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

參數

query
CommonFileQuery

常見的檔案查詢。

startIndex
UInt32

unsigned int

uint32_t

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

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

要擷取的檔案數目上限。

傳回

這個方法成功完成時,它會傳回資料夾中StorageFile物件的iVectorView 類型) 清單 (。

實作

M:Windows.Storage.Search.IStorageFolderQueryOperations.GetFilesAsync(Windows.Storage.Search.CommonFileQuery,System.UInt32,System.UInt32) M:Windows.Storage.Search.IStorageFolderQueryOperations.GetFilesAsync(Windows.Storage.Search.CommonFileQuery,unsigned int,unsigned int) M:Windows.Storage.Search.IStorageFolderQueryOperations.GetFilesAsync(Windows.Storage.Search.CommonFileQuery,uint32_t,uint32_t)
屬性

另請參閱

適用於