다음을 통해 공유


CustomVisionTrainingClient.UpdateTagWithHttpMessagesAsync Method

Definition

Update a tag.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag>> UpdateTagWithHttpMessagesAsync (Guid projectId, Guid tagId, Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag updatedTag, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateTagWithHttpMessagesAsync : Guid * Guid * Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag>>
override this.UpdateTagWithHttpMessagesAsync : Guid * Guid * Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag>>
Public Function UpdateTagWithHttpMessagesAsync (projectId As Guid, tagId As Guid, updatedTag As Tag, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Tag))

Parameters

projectId
Guid

The project id.

tagId
Guid

The id of the target tag.

updatedTag
Tag

The updated tag model.

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Implements

Exceptions

Thrown when the operation returned an invalid status code

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Thrown when a required parameter is null

Applies to