Compartir a través de


DigitalTwinClient.UpdateDigitalTwinAsync Método

Definición

Novedades un gemelo 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

Identificador del gemelo digital.

digitalTwinUpdateOperations
String

Las operaciones application/json-patch+json que se realizarán en el gemelo digital especificado.

requestOptions
DigitalTwinUpdateRequestOptions

La configuración opcional de esta solicitud.

cancellationToken
CancellationToken

CancellationToken.

Devoluciones

Respuesta http.

Comentarios

Para obtener más información sobre cómo crear json-patch, consulte https://docs.microsoft.com/azure/iot-pnp/howto-manage-digital-twin.

Se aplica a