你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JobOperations.ListSubtasks 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
枚举指定任务的 子任务信息 。
public Microsoft.Azure.Batch.IPagedEnumerable<Microsoft.Azure.Batch.SubtaskInformation> ListSubtasks (string jobId, string taskId, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.ListSubtasks : string * string * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.IPagedEnumerable<Microsoft.Azure.Batch.SubtaskInformation>
Public Function ListSubtasks (jobId As String, taskId As String, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As IPagedEnumerable(Of SubtaskInformation)
参数
- jobId
- String
作业的 ID。
- taskId
- String
要获取的任务的 ID。
- detailLevel
- DetailLevel
用于 DetailLevel 筛选列表和控制从服务检索哪些属性的 。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
应用于 和 detailLevel
之后的 Batch 服务请求的CustomBehaviors实例集合BatchClientBehavior。
返回
可用于 IPagedEnumerable<T> 异步或同步枚举子任务的 。
注解
此方法会立即返回;仅当枚举集合时,才会从 Batch 服务检索任务。 检索是非原子的;在枚举集合期间,在页面中检索任务。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈