ConnectionPolicy.UseMultipleWriteLocations Property

Definition

Gets or sets the flag to enable writes on any locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service.

public bool UseMultipleWriteLocations { get; set; }
member this.UseMultipleWriteLocations : bool with get, set
Public Property UseMultipleWriteLocations As Boolean

Property Value

Remarks

When the value of this property is true, the SDK will direct write operations to available writable locations of geo-replicated database account. Writable locations are ordered by PreferredLocations property. Setting the property value to true has no effect until Microsoft.Azure.Documents.DatabaseAccount.EnableMultipleWriteLocations is also set to true.

Applies to