Share via


DigitalTwinClient.CreateFromConnectionString Method

Definition

Creates DigitalTwinClient from an IoT hub connection string.

public static Microsoft.Azure.Devices.DigitalTwinClient CreateFromConnectionString (string connectionString, params System.Net.Http.DelegatingHandler[] handlers);
static member CreateFromConnectionString : string * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Devices.DigitalTwinClient
Public Shared Function CreateFromConnectionString (connectionString As String, ParamArray handlers As DelegatingHandler()) As DigitalTwinClient

Parameters

connectionString
String

The IoT hub's connection string.

handlers
DelegatingHandler[]

The delegating handlers to add to the http client pipeline. You can add handlers for tracing, implementing a retry strategy, routing requests through a proxy, etc.

Returns

A DigitalTwinsClient instance.

Applies to