TaskVersionSpec.Match 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
| Match(IEnumerable<TaskDefinition>) | |
| Match(IEnumerable<TaskVersion>) |
Finds the closest version match for the current specification. If no match can be found then a null value is returned. |
Match(IEnumerable<TaskDefinition>)
public Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinition Match(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinition> definitions);
member this.Match : seq<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinition> -> Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinition
Public Function Match (definitions As IEnumerable(Of TaskDefinition)) As TaskDefinition
Parameters
- definitions
- IEnumerable<TaskDefinition>
Returns
Applies to
Match(IEnumerable<TaskVersion>)
Finds the closest version match for the current specification. If no match can be found then a null value is returned.
public Microsoft.TeamFoundation.DistributedTask.WebApi.TaskVersion Match(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskVersion> versions);
member this.Match : seq<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskVersion> -> Microsoft.TeamFoundation.DistributedTask.WebApi.TaskVersion
Public Function Match (versions As IEnumerable(Of TaskVersion)) As TaskVersion
Parameters
- versions
- IEnumerable<TaskVersion>
The list of versions available for matching
Returns
The version which matches the specification if found; otherwise, null