你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosClientOptions.ApplicationRegion 属性

定义

获取或设置用于 Azure Cosmos DB 服务交互的首选异地复制区域。

public string ApplicationRegion { get; set; }
member this.ApplicationRegion : string with get, set
Public Property ApplicationRegion As String

属性值

注解

指定此属性后,SDK 首选区域来执行操作。 此外,SDK 会自动选择回退异地复制区域以实现高可用性。 如果未指定此属性,SDK 将使用写入区域作为所有操作的首选区域。

https://docs.microsoft.com/azure/cosmos-db/how-to-multi-master

适用于