DiscoveryTasksClient.AddCommentAsync 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
| Name | Description |
|---|---|
| AddCommentAsync(String, String, String, TaskComment, CancellationToken) |
Add a comment to a task. |
| AddCommentAsync(String, String, String, RequestContent, RequestContext) |
[Protocol Method] Add a comment to a task.
|
AddCommentAsync(String, String, String, TaskComment, CancellationToken)
- Source:
- DiscoveryTasksClient.cs
Add a comment to a task.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryTask>> AddCommentAsync(string projectName, string investigationName, string taskName, Azure.AI.Discovery.TaskComment body, System.Threading.CancellationToken cancellationToken = default);
abstract member AddCommentAsync : string * string * string * Azure.AI.Discovery.TaskComment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryTask>>
override this.AddCommentAsync : string * string * string * Azure.AI.Discovery.TaskComment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryTask>>
Public Overridable Function AddCommentAsync (projectName As String, investigationName As String, taskName As String, body As TaskComment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
AddCommentAsync(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 System.Threading.Tasks.Task<Azure.Response> AddCommentAsync(string projectName, string investigationName, string taskName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member AddCommentAsync : string * string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.AddCommentAsync : string * string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function AddCommentAsync (projectName As String, investigationName As String, taskName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of 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.