RegistryManager.GetDeviceAsync Method

Definition

Overloads

GetDeviceAsync(String)

Retrieves the specified Device object.

GetDeviceAsync(String, CancellationToken)

Retrieves the specified Device object.

GetDeviceAsync(String)

Retrieves the specified Device object.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device> GetDeviceAsync (string deviceId);
abstract member GetDeviceAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
override this.GetDeviceAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
Public Overridable Function GetDeviceAsync (deviceId As String) As Task(Of Device)

Parameters

deviceId
String

The id of the device being retrieved.

Returns

The Device object.

Applies to

GetDeviceAsync(String, CancellationToken)

Retrieves the specified Device object.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device> GetDeviceAsync (string deviceId, System.Threading.CancellationToken cancellationToken);
abstract member GetDeviceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
override this.GetDeviceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
Public Overridable Function GetDeviceAsync (deviceId As String, cancellationToken As CancellationToken) As Task(Of Device)

Parameters

deviceId
String

The id of the device being retrieved.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

The Device object.

Applies to