Share via


EvaluationRules.GetAsync Method

Definition

Overloads

Name Description
GetAsync(String, CancellationToken)

Get an evaluation rule.

GetAsync(String, RequestOptions)

[Protocol Method] Get an evaluation rule.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

GetAsync(String, CancellationToken)

Source:
EvaluationRules.cs

Get an evaluation rule.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>> GetAsync(string id, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>>
Public Overridable Function GetAsync (id As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of EvaluationRule))

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

GetAsync(String, RequestOptions)

Source:
EvaluationRules.cs

[Protocol Method] Get 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> GetAsync(string id, System.ClientModel.Primitives.RequestOptions options);
abstract member GetAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetAsync (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.

Applies to