AgentOptimizationJobs.Delete 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 |
|---|---|
| Delete(String, RequestOptions) |
[Protocol Method] Cancels active work, then deletes the job and its candidate artifacts.
|
| Delete(String, CancellationToken) |
Cancels active work, then deletes the job and its candidate artifacts. |
Delete(String, RequestOptions)
- Source:
- AgentOptimizationJobs.cs
- Source:
- AgentOptimizationJobs.cs
[Protocol Method] Cancels active work, then deletes the job and its candidate artifacts.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult Delete(string jobId, System.ClientModel.Primitives.RequestOptions options);
abstract member Delete : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.Delete : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function Delete (jobId As String, options As RequestOptions) As ClientResult
Parameters
- jobId
- String
The ID of the job to delete.
- 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
jobId is null.
jobId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
Delete(String, CancellationToken)
- Source:
- AgentOptimizationJobs.cs
- Source:
- AgentOptimizationJobs.cs
Cancels active work, then deletes the job and its candidate artifacts.
public virtual System.ClientModel.ClientResult Delete(string jobId, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
override this.Delete : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
Public Overridable Function Delete (jobId As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult
Parameters
- jobId
- String
The ID of the job to delete.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
jobId is null.
jobId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.