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)

TeamProjectCollection WaitForCollectionServicingToComplete(
	ServicingJobDetail jobDetail,
	TimeSpan timeout
)

Parameters

jobDetail
Type: Microsoft.TeamFoundation.Framework.Client.ServicingJobDetail

The detail of the queued job.

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.

Show: