共用方式為


IBuildDetail.Wait Method (TimeSpan, TimeSpan)

Blocks the calling thread until the build finishes or the time-out expires.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Syntax

'Declaration
Function Wait ( _
    pollingInterval As TimeSpan, _
    timeout As TimeSpan _
) As Boolean
bool Wait(
    TimeSpan pollingInterval,
    TimeSpan timeout
)
bool Wait(
    TimeSpan pollingInterval, 
    TimeSpan timeout
)
abstract Wait : 
        pollingInterval:TimeSpan * 
        timeout:TimeSpan -> bool
function Wait(
    pollingInterval : TimeSpan, 
    timeout : TimeSpan
) : boolean

Parameters

  • pollingInterval
    Type: System.TimeSpan

    The interval of time between server polling

Return Value

Type: System.Boolean
True if the build finished in the specified time-out, false otherwise

.NET Framework Security

See Also

Reference

IBuildDetail Interface

Wait Overload

Microsoft.TeamFoundation.Build.Client Namespace