DigitalTwinClient.CreateFromConnectionString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET