Share via


ConnectionPolicy.SetCurrentLocation(String) Method

Definition

Automatically populates the PreferredLocations for geo-replicated database accounts in the Azure Cosmos DB service, based on the current region that the client is running in.

public void SetCurrentLocation (string location);
member this.SetCurrentLocation : string -> unit
Public Sub SetCurrentLocation (location As String)

Parameters

location
String

The current region that this client is running in. E.g. "East US"

Applies to