Partilhar via


RegistryManager.AddDeviceAsync Método

Definição

Sobrecargas

AddDeviceAsync(Device)

Registrar um novo dispositivo com o sistema

AddDeviceAsync(Device, CancellationToken)

Registrar um novo dispositivo com o sistema

AddDeviceAsync(Device)

Registrar um novo dispositivo com o sistema

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device> AddDeviceAsync (Microsoft.Azure.Devices.Device device);
abstract member AddDeviceAsync : Microsoft.Azure.Devices.Device -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
override this.AddDeviceAsync : Microsoft.Azure.Devices.Device -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
Public Overridable Function AddDeviceAsync (device As Device) As Task(Of Device)

Parâmetros

device
Device

O objeto Device que está sendo registrado.

Retornos

O objeto Device com as chaves geradas e as ETags.

Aplica-se a

AddDeviceAsync(Device, CancellationToken)

Registrar um novo dispositivo com o sistema

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device> AddDeviceAsync (Microsoft.Azure.Devices.Device device, System.Threading.CancellationToken cancellationToken);
abstract member AddDeviceAsync : Microsoft.Azure.Devices.Device * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
override this.AddDeviceAsync : Microsoft.Azure.Devices.Device * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
Public Overridable Function AddDeviceAsync (device As Device, cancellationToken As CancellationToken) As Task(Of Device)

Parâmetros

device
Device

O objeto Device que está sendo registrado.

cancellationToken
CancellationToken

O token que permite que a operação seja cancelada.

Retornos

O objeto Device com as chaves geradas e as ETags.

Aplica-se a