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

Device.ParentScopes 属性

定义

上层边缘设备的范围(如果适用)。

[Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore, PropertyName="parentScopes")]
public virtual System.Collections.Generic.IList<string> ParentScopes { get; }
[<Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore, PropertyName="parentScopes")>]
member this.ParentScopes : System.Collections.Generic.IList<string>
Public Overridable ReadOnly Property ParentScopes As IList(Of String)

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

对于边缘设备,可以从父边缘设备的作用域属性中检索用于设置父边缘设备的值。

对于叶设备,可以将其设置为与范围相同的值,也可以保留服务进行复制。

目前,此列表在集合中只能有 1 个元素。

有关详细信息,请参阅 https://docs.microsoft.com/azure/iot-edge/iot-edge-as-gateway?view=iotedge-2020-11#parent-and-child-relationships

适用于