Device Class

Definition

Contains Device properties and their accessors.

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

Constructors

Device()

Creates a new instance of Device

Device(String)

Creates a new instance of Device

Properties

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 ConnectionState

ConnectionStateUpdatedTime

Time when the ConnectionState was last updated

ETag

Device's ETag

GenerationId

Device's Generation Id

Id

Device Id

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

StatusUpdatedTime

Time when the Status was last updated

Applies to