Partilhar via


DigitalTwinClient.UpdateDigitalTwinAsync Método

Definição

Atualizações um gêmeo digital.

public virtual System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationHeaderResponse<Microsoft.Azure.Devices.DigitalTwinUpdateHeaders>> UpdateDigitalTwinAsync (string digitalTwinId, string digitalTwinUpdateOperations, Microsoft.Azure.Devices.DigitalTwinUpdateRequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateDigitalTwinAsync : string * string * Microsoft.Azure.Devices.DigitalTwinUpdateRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationHeaderResponse<Microsoft.Azure.Devices.DigitalTwinUpdateHeaders>>
override this.UpdateDigitalTwinAsync : string * string * Microsoft.Azure.Devices.DigitalTwinUpdateRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationHeaderResponse<Microsoft.Azure.Devices.DigitalTwinUpdateHeaders>>
Public Overridable Function UpdateDigitalTwinAsync (digitalTwinId As String, digitalTwinUpdateOperations As String, Optional requestOptions As DigitalTwinUpdateRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationHeaderResponse(Of DigitalTwinUpdateHeaders))

Parâmetros

digitalTwinId
String

A ID do gêmeo digital.

digitalTwinUpdateOperations
String

As operações application/json-patch+json a serem executadas no gêmeo digital especificado.

requestOptions
DigitalTwinUpdateRequestOptions

As configurações opcionais para essa solicitação.

cancellationToken
CancellationToken

O cancellationToken.

Retornos

A resposta de http.

Comentários

Para obter mais informações sobre como criar o json-patch, consulte https://docs.microsoft.com/azure/iot-pnp/howto-manage-digital-twin.

Aplica-se a