Compartilhar via


DigitalTwinClient.GetDigitalTwinAsync<T> Método

Definição

Obtém um gêmeo digital fortemente tipado.

public virtual System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<T,Microsoft.Azure.Devices.DigitalTwinGetHeaders>> GetDigitalTwinAsync<T> (string digitalTwinId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDigitalTwinAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<'T, Microsoft.Azure.Devices.DigitalTwinGetHeaders>>
override this.GetDigitalTwinAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<'T, Microsoft.Azure.Devices.DigitalTwinGetHeaders>>
Public Overridable Function GetDigitalTwinAsync(Of T) (digitalTwinId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of T, DigitalTwinGetHeaders))

Parâmetros de tipo

T

Parâmetros

digitalTwinId
String

A ID do gêmeo digital.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

O gêmeo digital application/json e a resposta http.

Aplica-se a