Partilhar via


RegistryManager.GetTwinAsync Método

Definição

Sobrecargas

GetTwinAsync(String)

Obtém Twin do IotHub

GetTwinAsync(String, String)

Obtém módulos do Twin IotHub

GetTwinAsync(String, CancellationToken)

Obtém Twin do IotHub

GetTwinAsync(String, String, CancellationToken)

Obtém módulos do Twin IotHub

GetTwinAsync(String)

Obtém Twin do IotHub

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

Parâmetros

deviceId
String

A ID do dispositivo.

Retornos

Instância de gêmeo.

Aplica-se a

GetTwinAsync(String, String)

Obtém módulos do Twin IotHub

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync (string deviceId, string moduleId);
abstract member GetTwinAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
override this.GetTwinAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Overridable Function GetTwinAsync (deviceId As String, moduleId As String) As Task(Of Twin)

Parâmetros

deviceId
String

A ID do dispositivo.

moduleId
String

A ID do módulo.

Retornos

Instância de gêmeo.

Aplica-se a

GetTwinAsync(String, CancellationToken)

Obtém Twin do IotHub

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

Parâmetros

deviceId
String

A ID do dispositivo.

cancellationToken
CancellationToken

Token de cancelamento de tarefa.

Retornos

Instância de gêmeo.

Aplica-se a

GetTwinAsync(String, String, CancellationToken)

Obtém módulos do Twin IotHub

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

Parâmetros

deviceId
String

A ID do dispositivo.

moduleId
String

A ID do módulo.

cancellationToken
CancellationToken

Token de cancelamento de tarefa.

Retornos

Instância de gêmeo.

Aplica-se a