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

RegistryManager.GetModulesOnDeviceAsync 方法

定义

重载

GetModulesOnDeviceAsync(String)

检索设备上的模块标识

GetModulesOnDeviceAsync(String, CancellationToken)

检索设备上的模块标识

GetModulesOnDeviceAsync(String)

检索设备上的模块标识

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Module>> GetModulesOnDeviceAsync (string deviceId);
abstract member GetModulesOnDeviceAsync : string -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Devices.Module>>
override this.GetModulesOnDeviceAsync : string -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Devices.Module>>
Public Overridable Function GetModulesOnDeviceAsync (deviceId As String) As Task(Of IEnumerable(Of Module))

参数

deviceId
String

设备 ID。

返回

设备上的模块列表。

适用于

GetModulesOnDeviceAsync(String, CancellationToken)

检索设备上的模块标识

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

参数

deviceId
String

设备 ID。

cancellationToken
CancellationToken

允许取消操作的令牌。

返回

设备上的模块列表。

适用于