DiscoveryTasksClient.Create Method

Definition

Overloads

Name Description
Create(String, String, DiscoveryTask, CancellationToken)

Create a new task.

Create(String, String, RequestContent, RequestContext)

[Protocol Method] Create a new task.

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

Create(String, String, DiscoveryTask, CancellationToken)

Source:
DiscoveryTasksClient.cs

Create a new task.

public virtual Azure.Response<Azure.AI.Discovery.DiscoveryTask> Create(string projectName, string investigationName, Azure.AI.Discovery.DiscoveryTask body, System.Threading.CancellationToken cancellationToken = default);
abstract member Create : string * string * Azure.AI.Discovery.DiscoveryTask * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryTask>
override this.Create : string * string * Azure.AI.Discovery.DiscoveryTask * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryTask>
Public Overridable Function Create (projectName As String, investigationName As String, body As DiscoveryTask, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DiscoveryTask)

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

body
DiscoveryTask

Task creation request.

cancellationToken
CancellationToken

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

Returns

Exceptions

projectName, investigationName or body is null.

projectName or investigationName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

Create(String, String, RequestContent, RequestContext)

Source:
DiscoveryTasksClient.cs

[Protocol Method] Create a new task.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response Create(string projectName, string investigationName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member Create : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.Create : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function Create (projectName As String, investigationName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

content
RequestContent

The content to send as the body of the request.

context
RequestContext

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

projectName, investigationName or content is null.

projectName or investigationName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to