Megosztás a következőn keresztül:


ITeamProjectCollectionServicing.WaitForCollectionServicingToComplete Method (ServicingJobDetail, TimeSpan)

This method will block until a collection servicing operation has completed. It will then return the resulting collection. Note, you must have the Edit server-level information permission to monitor collection servicing.

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

Syntax

'Declaration
Function WaitForCollectionServicingToComplete ( _
    jobDetail As ServicingJobDetail, _
    timeout As TimeSpan _
) As TeamProjectCollection
TeamProjectCollection WaitForCollectionServicingToComplete(
    ServicingJobDetail jobDetail,
    TimeSpan timeout
)
TeamProjectCollection^ WaitForCollectionServicingToComplete(
    ServicingJobDetail^ jobDetail, 
    TimeSpan timeout
)
abstract WaitForCollectionServicingToComplete : 
        jobDetail:ServicingJobDetail * 
        timeout:TimeSpan -> TeamProjectCollection
function WaitForCollectionServicingToComplete(
    jobDetail : ServicingJobDetail, 
    timeout : TimeSpan
) : TeamProjectCollection

Parameters

  • timeout
    Type: System.TimeSpan

    The time span that a TimeoutException should occur after.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.TeamProjectCollection
The Team Project Collection that was being serviced.

.NET Framework Security

See Also

Reference

ITeamProjectCollectionServicing Interface

WaitForCollectionServicingToComplete Overload

Microsoft.TeamFoundation.Framework.Client Namespace