Condividi tramite


RegistryManager.RemoveDeviceAsync Method

Definition

Overloads

RemoveDeviceAsync(String, CancellationToken)

Deletes a previously registered device from the system.

RemoveDeviceAsync(Device, CancellationToken)

Deletes a previously registered device from the system.

RemoveDeviceAsync(Device)

Deletes a previously registered device from the system.

RemoveDeviceAsync(String)

Deletes a previously registered device from the system.

RemoveDeviceAsync(String, CancellationToken)

Deletes a previously registered device from the system.

public virtual System.Threading.Tasks.Task RemoveDeviceAsync (string deviceId, System.Threading.CancellationToken cancellationToken);
abstract member RemoveDeviceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveDeviceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RemoveDeviceAsync (deviceId As String, cancellationToken As CancellationToken) As Task

Parameters

deviceId
String

The id of the device being deleted.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

Applies to

RemoveDeviceAsync(Device, CancellationToken)

Deletes a previously registered device from the system.

public virtual System.Threading.Tasks.Task RemoveDeviceAsync (Microsoft.Azure.Devices.Device device, System.Threading.CancellationToken cancellationToken);
abstract member RemoveDeviceAsync : Microsoft.Azure.Devices.Device * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveDeviceAsync : Microsoft.Azure.Devices.Device * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RemoveDeviceAsync (device As Device, cancellationToken As CancellationToken) As Task

Parameters

device
Device

The device being deleted.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

Applies to

RemoveDeviceAsync(Device)

Deletes a previously registered device from the system.

public virtual System.Threading.Tasks.Task RemoveDeviceAsync (Microsoft.Azure.Devices.Device device);
abstract member RemoveDeviceAsync : Microsoft.Azure.Devices.Device -> System.Threading.Tasks.Task
override this.RemoveDeviceAsync : Microsoft.Azure.Devices.Device -> System.Threading.Tasks.Task
Public Overridable Function RemoveDeviceAsync (device As Device) As Task

Parameters

device
Device

The device being deleted.

Returns

Applies to

RemoveDeviceAsync(String)

Deletes a previously registered device from the system.

public virtual System.Threading.Tasks.Task RemoveDeviceAsync (string deviceId);
abstract member RemoveDeviceAsync : string -> System.Threading.Tasks.Task
override this.RemoveDeviceAsync : string -> System.Threading.Tasks.Task
Public Overridable Function RemoveDeviceAsync (deviceId As String) As Task

Parameters

deviceId
String

The id of the device being deleted.

Returns

Applies to