JobClient.ScheduleDeviceMethodAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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 オブジェクト
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET