IStorageFolder.GetFilesAsync IStorageFolder.GetFilesAsync IStorageFolder.GetFilesAsync IStorageFolder.GetFilesAsync IStorageFolder.GetFilesAsync Method

Definition

Gets the files from the current folder.

public : IAsyncOperation<IVectorView<StorageFile>> GetFilesAsync()
IAsyncOperation<IVectorView<StorageFile>> GetFilesAsync() const;
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync()
Public Function GetFilesAsync() As IAsyncOperation<IReadOnlyList<StorageFile>>(Of IVectorView)
Windows.Storage.IStorageFolder.getFilesAsync().done( /* Your success and error handlers */ );

Returns

IAsyncOperation<IReadOnlyList<StorageFile>> IAsyncOperation<IReadOnlyList<StorageFile>> IAsyncOperation<IReadOnlyList<StorageFile>>

When this method completes successfully, it returns a list of the files (type IVectorView ) in the folder. Each file in the list is represented by a StorageFile object.

See also