Skip to main content

Commands: GetKeyAsync

Syntax

#Commands: GetKeyAsync

GetKeyAsync is used to retrieve an object stored as a configuration item in RavenFS.

Task<T> GetKeyAsync<T>(string key);
Parameters
keystringThe configuration name

Return Value
Task<T>A task that represents the asynchronous operation. The task result is the deserialized object of type T.

Example

FileDescription desc = await store
.AsyncFilesCommands
.Configuration
.GetKeyAsync<FileDescription>("descriptions/intro.avi");