StorageFileQueryResult.GetFilesAsync StorageFileQueryResult.GetFilesAsync StorageFileQueryResult.GetFilesAsync StorageFileQueryResult.GetFilesAsync StorageFileQueryResult.GetFilesAsync Method

Definition

Overloads

GetFilesAsync() GetFilesAsync() GetFilesAsync() GetFilesAsync() GetFilesAsync()

Retrieves a list of all the files in the query result set.

GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32)

Retrieves a list of files in a specified range.

GetFilesAsync() GetFilesAsync() GetFilesAsync() GetFilesAsync() GetFilesAsync()

Retrieves a list of all the files in the query result set.

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.Search.StorageFileQueryResult.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 (type IVectorView ) of files that are represented by storageFile objects.

See also

GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32) GetFilesAsync(UInt32, UInt32)

Retrieves a list of files in a specified range.

public : IAsyncOperation<IVectorView<StorageFile>> GetFilesAsync(unsigned int startIndex, unsigned int maxNumberOfItems)
IAsyncOperation<IVectorView<StorageFile>> GetFilesAsync(uint32_t startIndex, uint32_t maxNumberOfItems) const;
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(UInt32 startIndex, UInt32 maxNumberOfItems)
Public Function GetFilesAsync(startIndex As UInt32, maxNumberOfItems As UInt32) As IAsyncOperation<IReadOnlyList<StorageFile>>(Of IVectorView)
Windows.Storage.Search.StorageFileQueryResult.getFilesAsync(startIndex, maxNumberOfItems).done( /* Your success and error handlers */ );

Parameters

startIndex
UInt32 UInt32 UInt32

The zero-based index of the first file to retrieve. This parameter is 0 by default.

maxNumberOfItems
UInt32 UInt32 UInt32

The maximum number of files to retrieve. Use -1 to retrieve all files. If the range contains fewer files than the max number, all files in the range are returned.

Returns

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

When this method completes successfully, it returns a list (type IVectorView ) of files that are represented by storageFile objects.

Remarks

Use this overload to improve system performance by presenting a virtualized view of the query results that includes only the necessary subset of files. For example, if your app displays many files in a gallery you could use this range to retrieve only the files that are currently visible to the user.

See also