你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RegistryManager.GetDeviceAsync 方法

定义

重载

GetDeviceAsync(String)

检索指定的 Device 对象。

GetDeviceAsync(String, CancellationToken)

检索指定的 Device 对象。

GetDeviceAsync(String)

检索指定的 Device 对象。

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)

参数

deviceId
String

正在检索的设备 ID。

返回

Device 对象。

适用于

GetDeviceAsync(String, CancellationToken)

检索指定的 Device 对象。

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)

参数

deviceId
String

正在检索的设备 ID。

cancellationToken
CancellationToken

允许取消操作的令牌。

返回

Device 对象。

适用于