Поделиться через


BuildService.QueueBuild Method

Attempts to enqueue builds using the provided requests. If the queueing is successful, a list of the queued builds is returned. The QueueId of the queued build may be used to perform later queries on the item for polling. If the build is the only one in the queue at the time of queueing and the Status is set to 'Active.' the build will start immediately.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueueBuild ( _
    buildRequest As BuildRequest2008, _
    options As QueueOptions2010 _
) As QueuedBuild2008
[WebMethodAttribute]
public QueuedBuild2008 QueueBuild(
    BuildRequest2008 buildRequest,
    QueueOptions2010 options
)
[WebMethodAttribute]
public:
QueuedBuild2008^ QueueBuild(
    BuildRequest2008^ buildRequest, 
    QueueOptions2010 options
)
[<WebMethodAttribute>]
member QueueBuild : 
        buildRequest:BuildRequest2008 * 
        options:QueueOptions2010 -> QueuedBuild2008
public function QueueBuild(
    buildRequest : BuildRequest2008, 
    options : QueueOptions2010
) : QueuedBuild2008

Parameters

Return Value

Type: Microsoft.TeamFoundation.Build.Server.Compatibility.QueuedBuild2008
A QueuedBuild object.

.NET Framework Security

See Also

Reference

BuildService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace