IndividualEnrollment.setIotHubHostName(String iotHubHostName) 方法
定义
Setter for the iotHubHostName.
A valid iothub host name shall follow this criteria. A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}. A valid host name shall have, at least 2 parts separated by '.'.
<xreftitle>Deprecated</xreftitle>
<xrefdescription>
<p>as of provisioning-service-client version 1.3.3, please use <xref uid="com.microsoft.azure.sdk.iot.provisioning.service.configs.IndividualEnrollment.setIotHubHostNameFinal(String)" data-throw-if-not-resolved="false" data-raw-source="setIotHubHostNameFinal(String)"></xref></p>
</xrefdescription>
public void setIotHubHostName(String iotHubHostName)
参数
- iotHubHostName
- String
theString
</code> with the new iotHubHostName. It cannot be<code>null
</code> , empty, or invalid. </p>
例外
If the provided iotHubHostName isnull
</code> , empty, or invalid. </p>