共用方式為


RegistryManager.RemoveModuleAsync Method

Definition

Overloads

RemoveModuleAsync(Module)

Deletes a previously registered module from device in the system.

RemoveModuleAsync(Module, CancellationToken)

Deletes a previously registered module from device in the system.

RemoveModuleAsync(String, String)

Deletes a previously registered module from device in the system.

RemoveModuleAsync(String, String, CancellationToken)

Deletes a previously registered module from device in the system.

RemoveModuleAsync(Module)

Deletes a previously registered module from device in the system.

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

Parameters

module
Module

The module being deleted.

Returns

Applies to

RemoveModuleAsync(Module, CancellationToken)

Deletes a previously registered module from device in the system.

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

Parameters

module
Module

The module being deleted.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

Applies to

RemoveModuleAsync(String, String)

Deletes a previously registered module from device in the system.

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

Parameters

deviceId
String

The id of the device being deleted.

moduleId
String

The id of the moduleId being deleted.

Returns

Applies to

RemoveModuleAsync(String, String, CancellationToken)

Deletes a previously registered module from device in the system.

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

Parameters

deviceId
String

The id of the device being deleted.

moduleId
String

The id of the moduleId being deleted.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

Applies to