IotHubConnectionStringBuilder Class
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.
Builds a connection string for the IoT hub service based on the properties populated by the user.
public sealed class IotHubConnectionStringBuilder
type IotHubConnectionStringBuilder = class
Public NotInheritable Class IotHubConnectionStringBuilder
- Inheritance
-
IotHubConnectionStringBuilder
Properties
AuthenticationMethod |
Gets or sets the authentication method to be used with the IoT hub service. |
DeviceId |
Gets the device identifier of the device connecting to the service. |
GatewayHostName |
Gets the optional name of the gateway to connect to |
HostName |
Gets or sets the value of the fully-qualified DNS hostname of the IoT hub service. |
ModuleId |
Gets the module identifier of the module connecting to the service. |
SharedAccessKey |
Gets the shared access key used to connect to the IoT hub service. |
SharedAccessKeyName |
Gets the shared access key name used to connect the device to the IoT hub service. |
SharedAccessSignature |
Gets the shared access signature used to connect to the IoT hub service. |
UsingX509Cert |
Indicates if the connection string indicates if an x509 certificate is specified for authentication. |
Methods
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. |
ToString() |
Produces the connection string based on the values of the IotHubConnectionStringBuilder instance properties. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기