Compartilhar via


RegistryManager.GetDeviceAsync Método

Definição

Sobrecargas

GetDeviceAsync(String)

Recupera o objeto Device especificado.

GetDeviceAsync(String, CancellationToken)

Recupera o objeto Device especificado.

GetDeviceAsync(String)

Recupera o objeto Device especificado.

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

Parâmetros

deviceId
String

A ID do dispositivo que está sendo recuperado.

Retornos

O objeto Device.

Aplica-se a

GetDeviceAsync(String, CancellationToken)

Recupera o objeto Device especificado.

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

Parâmetros

deviceId
String

A ID do dispositivo que está sendo recuperado.

cancellationToken
CancellationToken

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

Retornos

O objeto Device.

Aplica-se a