ProjectSchedules.GetRunAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetRunAsync(String, String, RequestOptions) |
[Protocol Method] Get a schedule run by id.
|
| GetRunAsync(String, String, CancellationToken) |
Get a schedule run by id. |
GetRunAsync(String, String, RequestOptions)
- Source:
- ProjectSchedules.cs
- Source:
- ProjectSchedules.cs
[Protocol Method] Get a schedule run by id.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> GetRunAsync(string scheduleId, string runId, System.ClientModel.Primitives.RequestOptions options);
abstract member GetRunAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetRunAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetRunAsync (scheduleId As String, runId As String, options As RequestOptions) As Task(Of ClientResult)
Parameters
- scheduleId
- String
The unique identifier of the schedule.
- runId
- String
The unique identifier of the schedule run.
- options
- RequestOptions
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
scheduleId or runId is null.
scheduleId or runId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetRunAsync(String, String, CancellationToken)
- Source:
- ProjectSchedules.cs
- Source:
- ProjectSchedules.cs
Get a schedule run by id.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Evaluation.ScheduleRun>> GetRunAsync(string scheduleId, string runId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRunAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Evaluation.ScheduleRun>>
override this.GetRunAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Evaluation.ScheduleRun>>
Public Overridable Function GetRunAsync (scheduleId As String, runId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of ScheduleRun))
Parameters
- scheduleId
- String
The unique identifier of the schedule.
- runId
- String
The unique identifier of the schedule run.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
scheduleId or runId is null.
scheduleId or runId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.