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

Device Class

Definition

Contains Device properties and their accessors.

public class Device : Microsoft.Azure.Devices.Shared.IETagHolder
public class Device
type Device = class
    interface IETagHolder
type Device = class
Public Class Device
Implements IETagHolder
Public Class Device
Inheritance
Device
Implements

Constructors

Name Description
Device()

Creates a new instance of Device

Device(String)

Creates a new instance of device.

Properties

Name Description
Authentication

Device's authentication mechanism.

Capabilities

Capabilities that are enabled one the device.

CloudToDeviceMessageCount

Number of messages sent to the device from the cloud.

ConnectionState

Device's connection state.

ConnectionStateUpdatedOnUtc

Time when the connection state was last updated.

ConnectionStateUpdatedTime

Time when the connection state was last updated.

ETag

Device's ETag.

GenerationId

Device's Generation Id.

Id

Device Id.

LastActiveOnUtc

Time when the device was last active.

LastActivityTime

Time when the device was last active.

ParentScopes

The scopes of the upper level edge devices if applicable.

Scope

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

Status

Device's status.

StatusReason

Reason, if any, for the device to be in specified status.

StatusUpdatedOnUtc

Time when the status was last updated.

StatusUpdatedTime

Time when the status was last updated.

Applies to