ModuleClient.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() |
Retrieve a module twin object for the current module. |
GetTwinAsync(CancellationToken) |
Retrieve a module twin object for the current module. |
GetTwinAsync()
Retrieve a module twin object for the current module.
public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync ();
member this.GetTwinAsync : unit -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Function GetTwinAsync () As Task(Of Twin)
Returns
The module twin object for the current module
Applies to
GetTwinAsync(CancellationToken)
Retrieve a module twin object for the current module.
public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin> GetTwinAsync (System.Threading.CancellationToken cancellationToken);
member this.GetTwinAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Shared.Twin>
Public Function GetTwinAsync (cancellationToken As CancellationToken) As Task(Of Twin)
Parameters
- cancellationToken
- CancellationToken
A cancellation token to cancel the operation.
Returns
The module twin object for the current module
Exceptions
Thrown when the operation has been canceled.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for