Share via


Evaluators.GetVersionAsync Method

Definition

Overloads

Name Description
GetVersionAsync(String, String, RequestOptions)

[Protocol Method] Get the specific version of the EvaluatorVersion. The service returns 404 Not Found error if the EvaluatorVersion does not exist.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetVersionAsync(String, String, CancellationToken)

Get the specific version of the EvaluatorVersion. The service returns 404 Not Found error if the EvaluatorVersion does not exist.

GetVersionAsync(String, String, RequestOptions)

Source:
Evaluators.cs

[Protocol Method] Get the specific version of the EvaluatorVersion. The service returns 404 Not Found error if the EvaluatorVersion does not exist.

  • 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> GetVersionAsync(string name, string version, System.ClientModel.Primitives.RequestOptions options);
abstract member GetVersionAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetVersionAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetVersionAsync (name As String, version As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

name
String

The name of the resource.

version
String

The specific version id of the EvaluatorVersion to retrieve.

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

name or version is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetVersionAsync(String, String, CancellationToken)

Source:
Evaluators.cs

Get the specific version of the EvaluatorVersion. The service returns 404 Not Found error if the EvaluatorVersion does not exist.

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

Parameters

name
String

The name of the resource.

version
String

The specific version id of the EvaluatorVersion to retrieve.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

name or version is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to