Compartilhar via


EvaluationsClient.Create Method

Definition

Overloads

Create(Evaluation, CancellationToken)

Run the evaluation.

Create(RequestContent, RequestContext)

[Protocol Method] Run the evaluation.

Create(Evaluation, CancellationToken)

Source:
EvaluationsClient.cs

Run the evaluation.

public virtual Azure.Response<Azure.AI.Projects.Evaluation> Create (Azure.AI.Projects.Evaluation evaluation, System.Threading.CancellationToken cancellationToken = default);
abstract member Create : Azure.AI.Projects.Evaluation * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.Evaluation>
override this.Create : Azure.AI.Projects.Evaluation * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.Evaluation>
Public Overridable Function Create (evaluation As Evaluation, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Evaluation)

Parameters

evaluation
Evaluation

Evaluation to run.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

evaluation is null.

Applies to

Create(RequestContent, RequestContext)

Source:
EvaluationsClient.cs

[Protocol Method] Run the evaluation.

public virtual Azure.Response Create (Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member Create : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.Create : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function Create (content As RequestContent, Optional context As RequestContext = Nothing) As Response

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to