Skip to main content

Commands: BrowseAsync

Syntax

#Commands: BrowseAsync

The BrowseAsync method is used to scan a file system for existing files.

Task<FileHeader[]> BrowseAsync(int start = 0, int pageSize = 1024);
Parameters
startintThe number of files that will be skipped
pageSizeintThe maximum number of file headers that will be retrieved (default: 1024)

Return Value
Task<FileHeader[]>A task that represents the asynchronous browse operation. The task result is the array of FileHeaders.

Example

start = 0;
pageSize = 10;
FileHeader[] fileHeaders;

do
{
fileHeaders = await store
.AsyncFilesCommands
.BrowseAsync(start, pageSize);

start += pageSize;

} while (fileHeaders.Length == pageSize);