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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET