Edit

Share via


WorkflowQueue.Peek Method

Definition

Returns the object at the beginning of the WorkflowQueue without removing it.

public:
 System::Object ^ Peek();
public object Peek ();
member this.Peek : unit -> obj
Public Function Peek () As Object

Returns

The object at the beginning of the WorkflowQueue.

Exceptions

Remarks

This method is similar to the Dequeue method, but Peek does not modify the WorkflowQueue. You can check Count to determine whether the WorkflowQueue is empty before you call Dequeue, or you can catch the InvalidOperationException.

Applies to