Edit

Share via


BuildHttpClientBase.AddDefinitionTagAsync Method

Definition

Overloads

AddDefinitionTagAsync(String, Int32, String, Object, CancellationToken)

[Preview API] Adds a tag to a definition

AddDefinitionTagAsync(Guid, Int32, String, Object, CancellationToken)

[Preview API] Adds a tag to a definition

AddDefinitionTagAsync(String, Int32, String, Object, CancellationToken)

[Preview API] Adds a tag to a definition

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<string>> AddDefinitionTagAsync (string project, int definitionId, string tag, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member AddDefinitionTagAsync : string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
override this.AddDefinitionTagAsync : string * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>

Parameters

project
String

Project ID or project name

definitionId
Int32

The ID of the definition.

tag
String

The tag to add.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

AddDefinitionTagAsync(Guid, Int32, String, Object, CancellationToken)

[Preview API] Adds a tag to a definition

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<string>> AddDefinitionTagAsync (Guid project, int definitionId, string tag, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member AddDefinitionTagAsync : Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
override this.AddDefinitionTagAsync : Guid * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>

Parameters

project
Guid

Project ID

definitionId
Int32

The ID of the definition.

tag
String

The tag to add.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to