RegistryManager.ReplaceTwinAsync Method

Definition

Overloads

ReplaceTwinAsync(String, String, String, CancellationToken)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, String, Twin, String, CancellationToken)

Updates the mutable fields of Module's Twin

ReplaceTwinAsync(String, String, String, String)

Updates the mutable fields of Module's Twin

ReplaceTwinAsync(String, String, String, String, CancellationToken)

Updates the mutable fields of Module's Twin

ReplaceTwinAsync(String, Twin, String, CancellationToken)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, String, String)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, Twin, String)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, String, Twin, String)

Updates the mutable fields of Module's Twin

ReplaceTwinAsync(String, String, String, CancellationToken)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

newTwinJson
String

New Twin json to replace with.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, String, Twin, String, CancellationToken)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

newTwin
Twin

New Twin object to replace with.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, String, String, String)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

newTwinJson
String

New Twin json to replace with.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, String, String, String, CancellationToken)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

newTwinJson
String

New Twin json to replace with.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, Twin, String, CancellationToken)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

newTwin
Twin

New Twin object to replace with.

etag
String

Twin's ETag.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, String, String)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

newTwinJson
String

New Twin json to replace with.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, Twin, String)

Updates the mutable fields of Twin

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

Parameters

deviceId
String

The device Id.

newTwin
Twin

New Twin object to replace with.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to

ReplaceTwinAsync(String, String, Twin, String)

Updates the mutable fields of Module's Twin

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

Parameters

deviceId
String

The device Id.

moduleId
String

The module Id.

newTwin
Twin

New Twin object to replace with.

etag
String

Twin's ETag.

Returns

Updated Twin instance.

Applies to