Condividi tramite


BuildService.UpdateQueuedBuilds Method

Updates queued builds with the provided information. The user must have the AdministerBuild permission on the team project that contains the queued build in order to perform this action.

This method is all or nothing, meaning that either all of the updates work or none of them work. Changing the postponed flag of a build may cause it to be started. Therefore, the Build property of the QueuedBuild object will be set if the build is started.

Namespace:  Microsoft.TeamFoundation.Build.Server.Compatibility
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function UpdateQueuedBuilds ( _
    updateOptions As QueuedBuildUpdateOptions2010() _
) As List(Of QueuedBuild2008)
[WebMethodAttribute]
public List<QueuedBuild2008> UpdateQueuedBuilds(
    QueuedBuildUpdateOptions2010[] updateOptions
)
[WebMethodAttribute]
public:
List<QueuedBuild2008^>^ UpdateQueuedBuilds(
    array<QueuedBuildUpdateOptions2010^>^ updateOptions
)
[<WebMethodAttribute>]
member UpdateQueuedBuilds : 
        updateOptions:QueuedBuildUpdateOptions2010[] -> List<QueuedBuild2008> 
public function UpdateQueuedBuilds(
    updateOptions : QueuedBuildUpdateOptions2010[]
) : List<QueuedBuild2008>

Parameters

Return Value

Type: System.Collections.Generic.List<QueuedBuild2008>
A list of queued build objects that were successfully updated.

.NET Framework Security

See Also

Reference

BuildService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace