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

ExportImportDevice.DeviceScope 属性

定义

设备的范围。 对于边缘设备,这是自动生成且不可变的。 对于叶设备,请设置此项以创建子/父关系。

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

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

对于叶设备,可以从父边缘设备的设备范围属性中检索用于设置父边缘设备的值。 有关详细信息,请参阅 https://docs.microsoft.com/azure/iot-edge/iot-edge-as-gateway?view=iotedge-2020-11#parent-and-child-relationships

适用于