JobClient.cancelJob(String jobId) 方法

定义

Cancel a current jod on the IoTHub

public synchronized JobResult cancelJob(String jobId)

参数

jobId
String

Unique Job Id for this job

返回

synchronized JobResult

a jobResult object

例外

IllegalArgumentException

if the jobId is invalid

IOException

if the function cannot create a URL for the job, or the IO failed on request

IotHubException

if the http request failed

适用于