共用方式為


ExportImportDevice.DeviceScope Property

Definition

The scope of the device. For edge devices, this is auto-generated and immutable. For leaf devices, set this to create child/parent relationship.

[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

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

For leaf devices, the value to set a parent edge device can be retrieved from the parent edge device's device scope property. For more information, see https://docs.microsoft.com/azure/iot-edge/iot-edge-as-gateway?view=iotedge-2020-11#parent-and-child-relationships.

Applies to