WorkflowQueue.Dequeue Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes and returns the object at the beginning of the WorkflowQueue.
public:
 System::Object ^ Dequeue();public object Dequeue();member this.Dequeue : unit -> objPublic Function Dequeue () As ObjectReturns
The object that is removed from the beginning of the WorkflowQueue.
Exceptions
The WorkflowQueue is empty.
Remarks
You can check Count to determine whether the WorkflowQueue is empty before you call Dequeue, or you can catch the InvalidOperationException.