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

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: UpdateMetadataAsync

UpdateMetadataAsync is used if you need to change just the file's metadata without any modification to its content.


Task UpdateMetadataAsync(string filename, RavenJObject metadata, Etag etag = null);
filename string The modified file name
metadata RavenJObject New file metadata
etag Etag The current file Etag, used for concurrency checks (null skips check)

Return Value
Task A task that represents the asynchronous metadata update operation.


await store
		new RavenJObject()
				"AllowRead", "None"