IotHubConnectionString.getUrlJobs 方法

定义

重载

getUrlJobs(String hostName, String jobId)

Create url for requesting jobs

getUrlJobs(String jobId)

Create url for requesting jobs

getUrlJobs(String hostName, String jobId)

Create url for requesting jobs

public static URL getUrlJobs(String hostName, String jobId)

参数

hostName
String

The hostname of the IoT Hub

jobId
String

is the name of the job

返回

URL

the URL in the follow format: "https:[hostname]/jobs/v2/[jobId]?api-version=2016-11-14"

例外

MalformedURLException

This exception is thrown if the URL creation failed due to malformed string

IllegalArgumentException

This exception is thrown if job id is null or empty

getUrlJobs(String jobId)

Create url for requesting jobs

public URL getUrlJobs(String jobId)

参数

jobId
String

is the name of the job

返回

URL

the URL in the follow format: "https:[hostname]/jobs/v2/[jobId]?api-version=2016-11-14"

例外

MalformedURLException

This exception is thrown if the URL creation failed due to malformed string

IllegalArgumentException

This exception is thrown if job id is null or empty

适用于