IotHubConnectionStringBuilder 类

定义

Provide static constructors to create IotHubConnectionString object

public class IotHubConnectionStringBuilder
继承
java.lang.Object
IotHubConnectionStringBuilder

方法

createConnectionString(String connectionString)

Static constructor to create IotHubConnectionString from the given string

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>Use <xref uid="com.microsoft.azure.sdk.iot.service.IotHubConnectionStringBuilder.createIotHubConnectionString(String)" data-throw-if-not-resolved="false" data-raw-source="createIotHubConnectionString(String)"></xref> since it does not declare any thrown exceptions </p>

</xrefdescription>
createConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create IotHubConnectionString from host name and authentication method

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>Use <xref uid="com.microsoft.azure.sdk.iot.service.IotHubConnectionStringBuilder.createIotHubConnectionString(String,AuthenticationMethod)" data-throw-if-not-resolved="false" data-raw-source="createIotHubConnectionString(String, AuthenticationMethod)"></xref> since it does not declare any thrown exceptions </p>

</xrefdescription>
createIotHubConnectionString(String connectionString)

Static constructor to create IotHubConnectionString from the given string

createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create IotHubConnectionString from host name and authentication method

parse(String connectionString, IotHubConnectionString iotHubConnectionString)

Deserialize connection string

parseIotHubName(IotHubConnectionString iotHubConnectionString)

Parse the iot hub name part from the host name

setAuthenticationMethod(AuthenticationMethod authenticationMethod, IotHubConnectionString iotHubConnectionString)

Set authentication method to target IotHubConnectionString object

setHostName(String hostName, IotHubConnectionString iotHubConnectionString)

Set host name value to target IotHubConnectionString object

validate(IotHubConnectionString iotHubConnectionString)

Validate IotHubConnectionString format

validateFormat(String value, String regex)

Validate string property using given regex

validateFormatIfSpecified(String value, String regex)

Validate string property using given regex if value is not null or empty

适用于