BuildHttpClientCompatBase.GetDefinitionAsync 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
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
- 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
- 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
- propertyFilters
- IEnumerable<String>
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.