共用方式為


ModulesClient Class

Definition

Subclient of IotHubServiceClient that handles all module registry operations including getting/creating/setting/deleting module identities.

public class ModulesClient
type ModulesClient = class
Public Class ModulesClient
Inheritance
ModulesClient

Constructors

ModulesClient()

Creates an instance of this class. Provided for unit testing purposes only.

Methods

CreateAsync(Module, CancellationToken)

Create a module identity in your IoT hub's registry.

DeleteAsync(Module, Boolean, CancellationToken)

Delete the module identity from your IoT hub's registry.

DeleteAsync(String, String, CancellationToken)

Delete the module identity with the provided Id from the device with the provided Id from your IoT hub's registry.

GetAsync(String, String, CancellationToken)

Get a module identity by its Id and by the Id of the device it is registered on.

SetAsync(Module, Boolean, CancellationToken)

Replace a module identity's state with the provided module identity's state.

Applies to