EvaluationsClient.CreateAsync 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
CreateAsync(Evaluation, CancellationToken) |
Run the evaluation. |
CreateAsync(RequestContent, RequestContext) |
[Protocol Method] Run the evaluation.
|
CreateAsync(Evaluation, CancellationToken)
- Source:
- EvaluationsClient.cs
Run the evaluation.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.Evaluation>> CreateAsync (Azure.AI.Projects.Evaluation evaluation, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAsync : Azure.AI.Projects.Evaluation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.Evaluation>>
override this.CreateAsync : Azure.AI.Projects.Evaluation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.Evaluation>>
Public Overridable Function CreateAsync (evaluation As Evaluation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Evaluation))
Parameters
- evaluation
- Evaluation
Evaluation to run.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
evaluation
is null.
Applies to
CreateAsync(RequestContent, RequestContext)
- Source:
- EvaluationsClient.cs
[Protocol Method] Run the evaluation.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler CreateAsync(Evaluation, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateAsync (Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of 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
Azure SDK for .NET