IotHubConnectionString.getUrlApplyConfigurationContent 方法
定义
重载
getUrlApplyConfigurationContent(String deviceId) |
Create the url needed to apply some configuration content to a device |
getUrlApplyConfigurationContent(String hostName, String deviceId) |
Create the url needed to apply some configuration content to a device
|
getUrlApplyConfigurationContent(String deviceId)
Create the url needed to apply some configuration content to a device
public URL getUrlApplyConfigurationContent(String deviceId)
参数
- deviceId
- String
The device to apply the configuration content to
返回
The device Url in the following format: "https:[hostname]/devices/[deviceId]/applyConfigurationContent?api-version=201X-XX-XX"
例外
if the deviceId contains unexpected characters, and a URL cannot be constructed using it
if deviceId is null or empty
getUrlApplyConfigurationContent(String hostName, String deviceId)
Create the url needed to apply some configuration content to a device
public static URL getUrlApplyConfigurationContent(String hostName, String deviceId)
参数
- hostName
- String
The hostname of the IoT Hub
- deviceId
- String
The device to apply the configuration content to
返回
The device Url in the following format: "https:[hostname]/devices/[deviceId]/applyConfigurationContent?api-version=201X-XX-XX"
例外
if the deviceId contains unexpected characters, and a URL cannot be constructed using it
if deviceId is null or empty