DiscoveryTasksClient.AddComment Method

Definition

Overloads

Name Description
AddComment(String, String, String, TaskComment, CancellationToken)

Add a comment to a task.

AddComment(String, String, String, RequestContent, RequestContext)

[Protocol Method] Add a comment to a task.

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

AddComment(String, String, String, TaskComment, CancellationToken)

Source:
DiscoveryTasksClient.cs

Add a comment to a task.

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

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

taskName
String

The task name.

body
TaskComment

Comment to add.

cancellationToken
CancellationToken

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

Returns

Exceptions

projectName, investigationName, taskName or body is null.

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

Service returned a non-success status code.

Applies to

AddComment(String, String, String, RequestContent, RequestContext)

Source:
DiscoveryTasksClient.cs

[Protocol Method] Add a comment to a task.

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

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

taskName
String

The task 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, taskName or content is null.

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

Service returned a non-success status code.

Applies to