Edit

Share via


BuildHttpClientCompatBase.GetDefinitionAsync Method

Definition

Overloads

GetDefinitionAsync(Int32, Nullable<Int32>, IEnumerable<String>, Object, CancellationToken)

[Preview API] Gets a definition, optionally at a specific revision

GetDefinitionAsync(Guid, Int32, Nullable<Int32>, IEnumerable<String>, Object, CancellationToken)

[Preview API] Gets a definition, optionally at a specific revision

GetDefinitionAsync(String, Int32, Nullable<Int32>, IEnumerable<String>, Object, CancellationToken)

[Preview API] Gets a definition, optionally at a specific revision

GetDefinitionAsync(Int32, Nullable<Int32>, IEnumerable<String>, Object, CancellationToken)

[Preview API] Gets a definition, optionally at a specific revision

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition> GetDefinitionAsync (int definitionId, Nullable<int> revision = null, System.Collections.Generic.IEnumerable<string> propertyFilters = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDefinitionAsync : int * Nullable<int> * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition>
override this.GetDefinitionAsync : int * Nullable<int> * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition>

Parameters

definitionId
Int32
revision
Nullable<Int32>
propertyFilters
IEnumerable<String>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetDefinitionAsync(Guid, Int32, Nullable<Int32>, IEnumerable<String>, Object, CancellationToken)

[Preview API] Gets a definition, optionally at a specific revision

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition> GetDefinitionAsync (Guid project, int definitionId, Nullable<int> revision = null, System.Collections.Generic.IEnumerable<string> propertyFilters = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDefinitionAsync : Guid * int * Nullable<int> * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition>
override this.GetDefinitionAsync : Guid * int * Nullable<int> * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition>

Parameters

project
Guid

Project ID

definitionId
Int32
revision
Nullable<Int32>
propertyFilters
IEnumerable<String>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetDefinitionAsync(String, Int32, Nullable<Int32>, IEnumerable<String>, Object, CancellationToken)

[Preview API] Gets a definition, optionally at a specific revision

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition> GetDefinitionAsync (string project, int definitionId, Nullable<int> revision = null, System.Collections.Generic.IEnumerable<string> propertyFilters = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDefinitionAsync : string * int * Nullable<int> * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition>
override this.GetDefinitionAsync : string * int * Nullable<int> * seq<string> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.BuildDefinition>

Parameters

project
String

Project ID or project name

definitionId
Int32
revision
Nullable<Int32>
propertyFilters
IEnumerable<String>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to