You are currently browsing legacy 4.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

Operations: How to Get Client Configuration

GetClientConfigurationOperation is used to return a client configuration, which is saved on the server and overrides client behavior.

Syntax

public GetClientConfigurationOperation()

public class Result
{
    public long Etag { get; set; }

    public ClientConfiguration Configuration { get; set; }
}

Return Value
Etag string Etag of configuration
Configuration ClientConfiguration configuration which will be used by the client API

Example

GetClientConfigurationOperation.Result config = store.Maintenance.Send(new GetClientConfigurationOperation());
ClientConfiguration clientConfiguration = config.Configuration;