You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: BrowseAsync

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


Task<FileHeader[]> BrowseAsync(int start = 0, int pageSize = 1024);
start int The number of files that will be skipped
pageSize int The 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.


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

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

	start += pageSize;

} while (fileHeaders.Length == pageSize);