Get Client Configuration Operation
(for database)


  • It is recommended to first refer to the client-configuration description in the put client-configuration article.

  • Use GetClientConfigurationOperation to get the current client-configuration set on the server for the database.

  • In this page:


Get client-configuration

// Define the get client-configuration operation 
var getClientConfigOp = new GetClientConfigurationOperation();
    
// Execute the operation by passing it to Maintenance.Send
GetClientConfigurationOperation.Result result = store.Maintenance.Send(getClientConfigOp);

ClientConfiguration clientConfiguration = result.Configuration;
// Define the get client-configuration operation 
var getClientConfigOp = new GetClientConfigurationOperation();
                
// Execute the operation by passing it to Maintenance.SendAsync
GetClientConfigurationOperation.Result config = 
    await store.Maintenance.SendAsync(getClientConfigOp);
                
ClientConfiguration clientConfiguration = config.Configuration;

Syntax

public GetClientConfigurationOperation()

// Executing the operation returns the following object: 
public class Result
{
    // The configuration Etag
    public long Etag { get; set; }
    
    // The current client-configuration deployed on the server for the database
    public ClientConfiguration Configuration { get; set; }
}