RegistryManager.ReplaceTwinAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기