Share via


FolderInformation.GetFilesAsync Método

Definição

Sobrecargas

GetFilesAsync()

Recupera todos os arquivos da pasta atual.

GetFilesAsync(CommonFileQuery)

Recupera arquivos da pasta atual com base em uma consulta de pasta comum.

GetFilesAsync(CommonFileQuery, UInt32, UInt32)

Recupera um intervalo de arquivos da pasta atual com base em uma consulta de arquivo comum.

GetFilesAsync()

Recupera todos os arquivos da pasta atual.

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))

Retornos

Quando esse método for concluído com êxito, ele retornará a lista (tipo IVectorView) de objetos StorageFile na pasta .

Implementações

Atributos

Confira também

Aplica-se a

GetFilesAsync(CommonFileQuery)

Recupera arquivos da pasta atual com base em uma consulta de pasta comum.

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))

Parâmetros

query
CommonFileQuery

A consulta de arquivo comum.

Retornos

Quando esse método for concluído com êxito, ele retornará a lista (tipo IVectorView) de objetos StorageFile na pasta .

Implementações

Atributos

Confira também

Aplica-se a

GetFilesAsync(CommonFileQuery, UInt32, UInt32)

Recupera um intervalo de arquivos da pasta atual com base em uma consulta de arquivo comum.

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))

Parâmetros

query
CommonFileQuery

A consulta de arquivo comum.

startIndex
UInt32

unsigned int

uint32_t

O índice baseado em zero do primeiro arquivo no intervalo.

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

O número máximo de arquivos a serem recuperados.

Retornos

Quando esse método for concluído com êxito, ele retornará a lista (tipo IVectorView) de objetos StorageFile na pasta .

Implementações

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)
Atributos

Confira também

Aplica-se a