EvaluationRules.DeleteAsync 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 |
|---|---|
| DeleteAsync(String, CancellationToken) |
Delete an evaluation rule. |
| DeleteAsync(String, RequestOptions) |
[Protocol Method] Delete an evaluation rule.
|
DeleteAsync(String, CancellationToken)
- Source:
- EvaluationRules.cs
Delete an evaluation rule.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteAsync(string id, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteAsync (id As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult)
Parameters
- id
- String
Unique identifier for the evaluation rule.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
id is null.
id is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
DeleteAsync(String, RequestOptions)
- Source:
- EvaluationRules.cs
[Protocol Method] Delete an evaluation rule.
- 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> DeleteAsync(string id, System.ClientModel.Primitives.RequestOptions options);
abstract member DeleteAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteAsync (id As String, options As RequestOptions) As Task(Of ClientResult)
Parameters
- id
- String
Unique identifier for the evaluation rule.
- 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
id is null.
id is an empty string, and was expected to be non-empty.
Service returned a non-success status code.