Sdílet prostřednictvím


ModuleClient.GetTwinAsync Method

Definition

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