Megosztás a következőn keresztül:


IotHubConnectionStringBuilder.Create Method

Definition

Overloads

Create(String)

Creates a connection string based on the hostname of the IoT hub and the authentication method passed as a parameter.

Create(String, IAuthenticationMethod)

Creates a connection string based on the hostname of the IoT hub and the authentication method passed as a parameter.

Create(String, String, IAuthenticationMethod)

Creates a connection string based on the hostname of the IoT hub, the hostname of Gateway and the authentication method passed as a parameter.

Create(String)

Creates a connection string based on the hostname of the IoT hub and the authentication method passed as a parameter.

public static Microsoft.Azure.Devices.Client.IotHubConnectionStringBuilder Create (string iotHubConnectionString);
static member Create : string -> Microsoft.Azure.Devices.Client.IotHubConnectionStringBuilder
Public Shared Function Create (iotHubConnectionString As String) As IotHubConnectionStringBuilder

Parameters

iotHubConnectionString
String

The connection string.

Returns

A new instance of the IotHubConnectionStringBuilder class with a populated connection string.

Applies to

Create(String, IAuthenticationMethod)

Creates a connection string based on the hostname of the IoT hub and the authentication method passed as a parameter.

public static Microsoft.Azure.Devices.Client.IotHubConnectionStringBuilder Create (string hostname, Microsoft.Azure.Devices.Client.IAuthenticationMethod authenticationMethod);
static member Create : string * Microsoft.Azure.Devices.Client.IAuthenticationMethod -> Microsoft.Azure.Devices.Client.IotHubConnectionStringBuilder
Public Shared Function Create (hostname As String, authenticationMethod As IAuthenticationMethod) As IotHubConnectionStringBuilder

Parameters

hostname
String

The fully-qualified DNS hostname of IoT hub

authenticationMethod
IAuthenticationMethod

The authentication method that is used

Returns

A new instance of the IotHubConnectionStringBuilder class with a populated connection string.

Applies to

Create(String, String, IAuthenticationMethod)

Creates a connection string based on the hostname of the IoT hub, the hostname of Gateway and the authentication method passed as a parameter.

public static Microsoft.Azure.Devices.Client.IotHubConnectionStringBuilder Create (string hostname, string gatewayHostname, Microsoft.Azure.Devices.Client.IAuthenticationMethod authenticationMethod);
static member Create : string * string * Microsoft.Azure.Devices.Client.IAuthenticationMethod -> Microsoft.Azure.Devices.Client.IotHubConnectionStringBuilder
Public Shared Function Create (hostname As String, gatewayHostname As String, authenticationMethod As IAuthenticationMethod) As IotHubConnectionStringBuilder

Parameters

hostname
String

The fully-qualified DNS hostname of IoT hub

gatewayHostname
String

The fully-qualified DNS hostname of the gateway

authenticationMethod
IAuthenticationMethod

The authentication method that is used

Returns

A new instance of the IotHubConnectionStringBuilder class with a populated connection string.

Applies to