Udostępnij za pośrednictwem


TwinsClient Class

Definition

Subclient of IotHubServiceClient that handles getting, updating, and replacing device and module twins.

public class TwinsClient
type TwinsClient = class
Public Class TwinsClient
Inheritance
TwinsClient

Constructors

TwinsClient()

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

Methods

GetAsync(String, CancellationToken)

Gets a device's twin from IoT hub.

GetAsync(String, String, CancellationToken)

Gets a module's twin from IoT hub.

ReplaceAsync(String, ClientTwin, Boolean, CancellationToken)

Updates the mutable fields of a device's twin.

ReplaceAsync(String, String, ClientTwin, Boolean, CancellationToken)

Updates the mutable fields of a module's twin.

UpdateAsync(IEnumerable<ClientTwin>, Boolean, CancellationToken)

Update the mutable fields for a list of module twins previously created within the system.

UpdateAsync(String, ClientTwin, Boolean, CancellationToken)

Updates the mutable fields of a module's twin.

UpdateAsync(String, String, ClientTwin, Boolean, CancellationToken)

Updates the mutable fields of a module's twin.

Applies to