IotHubConnectionString.getUrlDeviceList 方法
定义
重载
getUrlDeviceList(Integer maxCount) |
Create url for requesting device list
|
getUrlDeviceList(String hostName, Integer maxCount) |
Create url for requesting device list
|
getUrlDeviceList(Integer maxCount)
Create url for requesting device list
public URL getUrlDeviceList(Integer maxCount)
参数
- maxCount
- Integer
The number of requested devices
返回
URL
URL string to get the device list from IotHub
例外
MalformedURLException
This exception is thrown if the URL creation failed due to malformed string
IllegalArgumentException
This exception is thrown if maxCount is null or empty
getUrlDeviceList(String hostName, Integer maxCount)
Create url for requesting device list
public static URL getUrlDeviceList(String hostName, Integer maxCount)
参数
- hostName
- String
The hostname of the IoT Hub
- maxCount
- Integer
The number of requested devices
返回
URL
URL string to get the device list from IotHub
例外
MalformedURLException
This exception is thrown if the URL creation failed due to malformed string
IllegalArgumentException
This exception is thrown if maxCount is null or empty