RegistryManager.GetTwinAsync 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
GetTwinAsync(String) |
Gets Twin from IotHub |
GetTwinAsync(String, String) |
Gets Module's Twin from IotHub |
GetTwinAsync(String, CancellationToken) |
Gets Twin from IotHub |
GetTwinAsync(String, String, CancellationToken) |
Gets Module's Twin from IotHub |
GetTwinAsync(String)
Gets Twin from IotHub
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync (string deviceId);
abstract member GetTwinAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
override this.GetTwinAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Overridable Function GetTwinAsync (deviceId As String) As Task(Of Twin)
Parameters
- deviceId
- String
The device Id.
Returns
Twin instance.
Applies to
GetTwinAsync(String, String)
Gets Module's Twin from IotHub
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync (string deviceId, string moduleId);
abstract member GetTwinAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
override this.GetTwinAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Overridable Function GetTwinAsync (deviceId As String, moduleId As String) As Task(Of Twin)
Parameters
- deviceId
- String
The device Id.
- moduleId
- String
The module Id.
Returns
Twin instance.
Applies to
GetTwinAsync(String, CancellationToken)
Gets Twin from IotHub
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync (string deviceId, System.Threading.CancellationToken cancellationToken);
abstract member GetTwinAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
override this.GetTwinAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Overridable Function GetTwinAsync (deviceId As String, cancellationToken As CancellationToken) As Task(Of Twin)
Parameters
- deviceId
- String
The device Id.
- cancellationToken
- CancellationToken
Task cancellation token.
Returns
Twin instance.
Applies to
GetTwinAsync(String, String, CancellationToken)
Gets Module's Twin from IotHub
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync (string deviceId, string moduleId, System.Threading.CancellationToken cancellationToken);
abstract member GetTwinAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
override this.GetTwinAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Overridable Function GetTwinAsync (deviceId As String, moduleId As String, cancellationToken As CancellationToken) As Task(Of Twin)
Parameters
- deviceId
- String
The device Id.
- moduleId
- String
The module Id.
- cancellationToken
- CancellationToken
Task cancellation token.
Returns
Twin instance.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應