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

IotHubLocationDescription.Role 属性

定义

获取或设置区域的角色,可以是主要区域,也可以是辅助区域。 主要区域是当前预配 IoT 中心的位置。 次要区域是 Azure 灾难恢复 (DR) 配对区域,也是 IoT 中心可以故障转移到的区域。 可能的值包括:“primary”、“secondary”

[Newtonsoft.Json.JsonProperty(PropertyName="role")]
public string Role { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="role")>]
member this.Role : string with get, set
Public Property Role As String

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于