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

RegistryManager.RemoveDevicesAsync 方法

定义

重载

RemoveDevicesAsync(IEnumerable<Device>)
已过时.

从系统中删除以前注册的设备的列表。

RemoveDevicesAsync(IEnumerable<Device>, Boolean, CancellationToken)
已过时.

从系统中删除以前注册的设备的列表。

RemoveDevicesAsync(IEnumerable<Device>)

注意

Use RemoveDevices2Async

从系统中删除以前注册的设备的列表。

[System.Obsolete("Use RemoveDevices2Async")]
public virtual System.Threading.Tasks.Task<string[]> RemoveDevicesAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices);
[<System.Obsolete("Use RemoveDevices2Async")>]
abstract member RemoveDevicesAsync : seq<Microsoft.Azure.Devices.Device> -> System.Threading.Tasks.Task<string[]>
override this.RemoveDevicesAsync : seq<Microsoft.Azure.Devices.Device> -> System.Threading.Tasks.Task<string[]>
Public Overridable Function RemoveDevicesAsync (devices As IEnumerable(Of Device)) As Task(Of String())

参数

devices
IEnumerable<Device>

要删除的设备。

返回

属性

适用于

RemoveDevicesAsync(IEnumerable<Device>, Boolean, CancellationToken)

注意

Use RemoveDevices2Async

从系统中删除以前注册的设备的列表。

[System.Obsolete("Use RemoveDevices2Async")]
public virtual System.Threading.Tasks.Task<string[]> RemoveDevicesAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices, bool forceRemove, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use RemoveDevices2Async")>]
abstract member RemoveDevicesAsync : seq<Microsoft.Azure.Devices.Device> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
override this.RemoveDevicesAsync : seq<Microsoft.Azure.Devices.Device> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
Public Overridable Function RemoveDevicesAsync (devices As IEnumerable(Of Device), forceRemove As Boolean, cancellationToken As CancellationToken) As Task(Of String())

参数

devices
IEnumerable<Device>

要删除的设备。

forceRemove
Boolean

强制删除设备对象,而不考虑 ETag 匹配。

cancellationToken
CancellationToken

允许取消操作的标记。

返回

属性

适用于