JobClient.ScheduleRebootDeviceAsync Method
Namespace: Microsoft.Azure.Devices
Assembly: Microsoft.Azure.Devices (in Microsoft.Azure.Devices.dll)
Overload List
| Name | Description | |
|---|---|---|
![]() |
ScheduleRebootDeviceAsync(String, IEnumerable<String>) | Schedule a job to reboot a Device |
![]() |
ScheduleRebootDeviceAsync(String, IEnumerable<String>, CancellationToken) | Schedule a job to reboot a Device |
![]() |
ScheduleRebootDeviceAsync(String, String) | Schedule a job to reboot a Device |
![]() |
ScheduleRebootDeviceAsync(String, String, CancellationToken) | Schedule a job to reboot a Device |
See Also
JobClient Class
Microsoft.Azure.Devices Namespace
Return to top
JobClient.ScheduleRebootDeviceAsync Method (String, IEnumerable<String>)
Schedule a job to reboot a Device
Syntax
public abstract Task<JobResponse> ScheduleRebootDeviceAsync(
string jobId,
IEnumerable<string> deviceIds
)
public:
virtual Task<JobResponse^>^ ScheduleRebootDeviceAsync(
String^ jobId,
IEnumerable<String^>^ deviceIds
) abstract
Parameters
jobId
Type: System.StringJob Id
deviceIds
Type: System.Collections.Generic.IEnumerable<String>Device Ids
Return Value
Type: System.Threading.Tasks.Task<JobResponse>
Job to poll for status
Return to top
JobClient.ScheduleRebootDeviceAsync Method (String, IEnumerable<String>, CancellationToken)
Schedule a job to reboot a Device
Syntax
public abstract Task<JobResponse> ScheduleRebootDeviceAsync(
string jobId,
IEnumerable<string> deviceIds,
CancellationToken cancellationToken
)
public:
virtual Task<JobResponse^>^ ScheduleRebootDeviceAsync(
String^ jobId,
IEnumerable<String^>^ deviceIds,
CancellationToken cancellationToken
) abstract
Parameters
jobId
Type: System.StringJob Id
deviceIds
Type: System.Collections.Generic.IEnumerable<String>Device Ids
cancellationToken
Type: System.Threading.CancellationTokenThe token which allows the operation to be cancelled.
Return Value
Type: System.Threading.Tasks.Task<JobResponse>
Job to poll for status
Return to top
JobClient.ScheduleRebootDeviceAsync Method (String, String)
Schedule a job to reboot a Device
Syntax
public abstract Task<JobResponse> ScheduleRebootDeviceAsync(
string jobId,
string deviceId
)
public:
virtual Task<JobResponse^>^ ScheduleRebootDeviceAsync(
String^ jobId,
String^ deviceId
) abstract
Parameters
jobId
Type: System.StringJob Id
deviceId
Type: System.StringDevice Id
Return Value
Type: System.Threading.Tasks.Task<JobResponse>
Job to poll for status
Return to top
JobClient.ScheduleRebootDeviceAsync Method (String, String, CancellationToken)
Schedule a job to reboot a Device
Syntax
public abstract Task<JobResponse> ScheduleRebootDeviceAsync(
string jobId,
string deviceId,
CancellationToken cancellationToken
)
public:
virtual Task<JobResponse^>^ ScheduleRebootDeviceAsync(
String^ jobId,
String^ deviceId,
CancellationToken cancellationToken
) abstract
Parameters
jobId
Type: System.StringJob Id
deviceId
Type: System.StringDevice Ids
cancellationToken
Type: System.Threading.CancellationTokenThe token which allows the operation to be cancelled.
Return Value
Type: System.Threading.Tasks.Task<JobResponse>
Job to poll for status
Return to top
.jpeg)