你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JobOperationsExtensions.GetAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetAsync(IJobOperations, String, String, Guid) | |
GetAsync(IJobOperations, String, String, String, String, CancellationToken) |
检索由作业名称标识的作业。 http://aka.ms/azureautomationsdk/joboperations |
GetAsync(IJobOperations, String, String, Guid)
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.JobGetResponse> GetAsync (this Microsoft.Azure.Management.Automation.IJobOperations operations, string resourceGroupName, string automationAccount, Guid jobId);
static member GetAsync : Microsoft.Azure.Management.Automation.IJobOperations * string * string * Guid -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.JobGetResponse>
<Extension()>
Public Function GetAsync (operations As IJobOperations, resourceGroupName As String, automationAccount As String, jobId As Guid) As Task(Of JobGetResponse)
参数
- operations
- IJobOperations
- resourceGroupName
- String
- automationAccount
- String
- jobId
- Guid
返回
适用于
GetAsync(IJobOperations, String, String, String, String, CancellationToken)
检索由作业名称标识的作业。 http://aka.ms/azureautomationsdk/joboperations
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Job> GetAsync (this Microsoft.Azure.Management.Automation.IJobOperations operations, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Automation.IJobOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Job>
<Extension()>
Public Function GetAsync (operations As IJobOperations, resourceGroupName As String, automationAccountName As String, jobName As String, Optional clientRequestId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Job)
参数
- operations
- IJobOperations
此扩展方法的操作组。
- resourceGroupName
- String
Azure 资源组的名称。
- automationAccountName
- String
自动化帐户的名称。
- jobName
- String
作业名称。
- clientRequestId
- String
标识此特定客户端请求。
- cancellationToken
- CancellationToken
取消标记。