You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: GetMetadataForAsync

GetMetadataForAsync is used to retrieve the file's metadata.

Syntax

Task<RavenJObject> GetMetadataForAsync(string filename);

Parameters
filename string The name of a file

Return Value
Task<RavenJObject> A task that represents the asynchronous metadata download operation. The task result is the file's metadata.

Example

var metadata = await store
	.AsyncFilesCommands
	.GetMetadataForAsync("/movies/intro.avi");