共用方式為


RegistryManager.UpdateTwinAsync Method

Definition

Overloads

UpdateTwinAsync(String, String, Twin, String)

Updates the mutable fields of Module's Twin

UpdateTwinAsync(String, Twin, String)

Updates the mutable fields of Twin

UpdateTwinAsync(String, String, String)

Updates the mutable fields of Twin

UpdateTwinAsync(String, Twin, String, CancellationToken)

Updates the mutable fields of Twin

UpdateTwinAsync(String, String, String, String)

Updates the mutable fields of Module's Twin

UpdateTwinAsync(String, String, String, CancellationToken)

Updates the mutable fields of Twin

UpdateTwinAsync(String, String, Twin, String, CancellationToken)

Updates the mutable fields of Module's Twin

UpdateTwinAsync(String, String, String, String, CancellationToken)

Updates the mutable fields of Module's Twin

UpdateTwinAsync(String, String, Twin, String)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

twinPatch
Twin

Twin with updated fields.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, Twin, String)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

twinPatch
Twin

Twin with updated fields.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, String, String)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

jsonTwinPatch
String

Twin json with updated fields.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, Twin, String, CancellationToken)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

twinPatch
Twin

Twin with updated fields.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, String, String, String)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

jsonTwinPatch
String

Twin json with updated fields.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, String, String, CancellationToken)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

jsonTwinPatch
String

Twin json with updated fields.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, String, Twin, String, CancellationToken)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

twinPatch
Twin

Twin with updated fields.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

UpdateTwinAsync(String, String, String, String, CancellationToken)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

jsonTwinPatch
String

Twin json with updated fields.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to