DiscoveryTasksClient.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, String, String, RequestContext) |
[Protocol Method] Delete a task by ID.
|
| Delete(String, String, String, CancellationToken) |
Delete a task by ID. |
Delete(String, String, String, RequestContext)
- Source:
- DiscoveryTasksClient.cs
[Protocol Method] Delete a task by ID.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response Delete(string projectName, string investigationName, string taskName, Azure.RequestContext context);
abstract member Delete : string * string * string * Azure.RequestContext -> Azure.Response
override this.Delete : string * string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function Delete (projectName As String, investigationName As String, taskName As String, context As RequestContext) As Response
Parameters
- projectName
- String
The project name.
- investigationName
- String
The investigation name.
- taskName
- String
The unique identifier of the task.
- context
- RequestContext
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
projectName, investigationName or taskName is null.
projectName, investigationName or taskName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
Delete(String, String, String, CancellationToken)
- Source:
- DiscoveryTasksClient.cs
Delete a task by ID.
public virtual Azure.Response Delete(string projectName, string investigationName, string taskName, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : string * string * string * System.Threading.CancellationToken -> Azure.Response
override this.Delete : string * string * string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function Delete (projectName As String, investigationName As String, taskName As String, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- projectName
- String
The project name.
- investigationName
- String
The investigation name.
- taskName
- String
The unique identifier of the task.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
projectName, investigationName or taskName is null.
projectName, investigationName or taskName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.