TeamFoundationMessageQueueService.EndDequeue Method
Ends an asynchronous dequeue operation on a message queue.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function EndDequeue ( _
result As IAsyncResult _
) As Message
public Message EndDequeue(
IAsyncResult result
)
public:
Message^ EndDequeue(
IAsyncResult^ result
)
member EndDequeue :
result:IAsyncResult -> Message
public function EndDequeue(
result : IAsyncResult
) : Message
Parameters
result
Type: System.IAsyncResultThe asynchronous operation
Return Value
Type: System.ServiceModel.Channels.Message
The message which was dequeued, or null
Exceptions
Exception | Condition |
---|---|
TimeoutException | If the dequeue operation times out |
OperationCanceledException | If the dequeue operation is canceled |
MessageQueueNotFoundException | If the specified message queue does not exist |
.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.