次の方法で共有


JobClient.ScheduleDeviceMethodAsync メソッド

定義

オーバーロード

ScheduleDeviceMethodAsync(String, String, CloudToDeviceMethod, DateTime, Int64)

1 つまたは複数のデバイスでデバイス メソッドを実行する新しいジョブを作成します

ScheduleDeviceMethodAsync(String, String, CloudToDeviceMethod, DateTime, Int64, CancellationToken)

1 つまたは複数のデバイスでデバイス メソッドを実行する新しいジョブを作成します

ScheduleDeviceMethodAsync(String, String, CloudToDeviceMethod, DateTime, Int64)

1 つまたは複数のデバイスでデバイス メソッドを実行する新しいジョブを作成します

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse> ScheduleDeviceMethodAsync (string jobId, string queryCondition, Microsoft.Azure.Devices.CloudToDeviceMethod cloudToDeviceMethod, DateTime startTimeUtc, long maxExecutionTimeInSeconds);
abstract member ScheduleDeviceMethodAsync : string * string * Microsoft.Azure.Devices.CloudToDeviceMethod * DateTime * int64 -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
override this.ScheduleDeviceMethodAsync : string * string * Microsoft.Azure.Devices.CloudToDeviceMethod * DateTime * int64 -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
Public Overridable Function ScheduleDeviceMethodAsync (jobId As String, queryCondition As String, cloudToDeviceMethod As CloudToDeviceMethod, startTimeUtc As DateTime, maxExecutionTimeInSeconds As Long) As Task(Of JobResponse)

パラメーター

jobId
String

このジョブの一意のジョブ ID

queryCondition
String

ジョブを実行するデバイスを評価するためのクエリ条件

cloudToDeviceMethod
CloudToDeviceMethod

メソッド呼び出しパラメーター

startTimeUtc
DateTime

ジョブを開始する Utc の日付時刻

maxExecutionTimeInSeconds
Int64

最大実行時間 (つまり、ジョブが実行できる ttl 期間) (秒単位)

戻り値

JobResponse オブジェクト

適用対象

ScheduleDeviceMethodAsync(String, String, CloudToDeviceMethod, DateTime, Int64, CancellationToken)

1 つまたは複数のデバイスでデバイス メソッドを実行する新しいジョブを作成します

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse> ScheduleDeviceMethodAsync (string jobId, string queryCondition, Microsoft.Azure.Devices.CloudToDeviceMethod cloudToDeviceMethod, DateTime startTimeUtc, long maxExecutionTimeInSeconds, System.Threading.CancellationToken cancellationToken);
abstract member ScheduleDeviceMethodAsync : string * string * Microsoft.Azure.Devices.CloudToDeviceMethod * DateTime * int64 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
override this.ScheduleDeviceMethodAsync : string * string * Microsoft.Azure.Devices.CloudToDeviceMethod * DateTime * int64 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
Public Overridable Function ScheduleDeviceMethodAsync (jobId As String, queryCondition As String, cloudToDeviceMethod As CloudToDeviceMethod, startTimeUtc As DateTime, maxExecutionTimeInSeconds As Long, cancellationToken As CancellationToken) As Task(Of JobResponse)

パラメーター

jobId
String

このジョブの一意のジョブ ID

queryCondition
String

ジョブを実行するデバイスを評価するためのクエリ条件

cloudToDeviceMethod
CloudToDeviceMethod

メソッド呼び出しパラメーター

startTimeUtc
DateTime

ジョブを開始する Utc の日付時刻

maxExecutionTimeInSeconds
Int64

最大実行時間 (つまり、ジョブが実行できる ttl 期間) (秒単位)

cancellationToken
CancellationToken

タスクの取り消しトークン

戻り値

JobResponse オブジェクト

適用対象