IotHubConnectionStringBuilder.Create 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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應