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.
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
TeamProjectCollection WaitForCollectionServicingToComplete( ServicingJobDetail jobDetail, TimeSpan timeout )
- Type: Microsoft.TeamFoundation.Framework.Client.ServicingJobDetail
The detail of the queued job.
- Type: System.TimeSpan
The time span that a TimeoutException should occur after.
Return ValueType: Microsoft.TeamFoundation.Framework.Client.TeamProjectCollection
The Team Project Collection that was being serviced.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.