Share via


EvaluationTaxonomies.CreateAsync Method

Definition

Overloads

Name Description
CreateAsync(String, EvaluationTaxonomy, CancellationToken)

Create an evaluation taxonomy.

CreateAsync(String, BinaryContent, RequestOptions)

[Protocol Method] Create an evaluation taxonomy.

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

CreateAsync(String, EvaluationTaxonomy, CancellationToken)

Source:
EvaluationTaxonomies.cs

Create an evaluation taxonomy.

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

Parameters

name
String

The name of the evaluation taxonomy.

body
EvaluationTaxonomy

The evaluation taxonomy.

cancellationToken
CancellationToken

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

Returns

Exceptions

name or body is null.

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

Service returned a non-success status code.

Applies to

CreateAsync(String, BinaryContent, RequestOptions)

Source:
EvaluationTaxonomies.cs

[Protocol Method] Create an evaluation taxonomy.

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

Parameters

name
String

The name of the evaluation taxonomy.

content
BinaryContent

The content to send as the body of the request.

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 content is null.

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

Service returned a non-success status code.

Applies to