This documentation is archived and is not being maintained.
TfsMessageQueue::Dequeue Method (TimeSpan)
Visual Studio 2013
Dequeues a message from the queue. The caller will be blocked for a maximum duration of the specified time-out.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Parameters
- timeout
- Type: System::TimeSpan
The maximum time to wait for a message to be received
Return Value
Type: Microsoft.TeamFoundation.Framework.Client::TfsDequeueContextThe message which was dequeued from the server, or null if the queue has been closed
| Exception | Condition |
|---|---|
| TimeoutException | if the specified time-out is exceeded |
- 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.
Show: