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
jobDetail
Type: Microsoft.TeamFoundation.Framework.Client.ServicingJobDetailThe detail of the queued job.
timeout
Type: System.TimeSpanThe 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
- 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.
See Also
Reference
ITeamProjectCollectionServicing Interface