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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기