StateMachineWorkflowInstance.EnqueueItem Method

Definition

Posts a message to the StateMachineWorkflowInstance.

Overloads

EnqueueItem(IComparable, Object)

Posts a message to the StateMachineWorkflowInstance.

C#
public void EnqueueItem(IComparable queueName, object item);

Parameters

queueName
IComparable

The name of the workflow queue.

item
Object

The object to queue.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

EnqueueItem(IComparable, Object, IPendingWork, Object)

Posts a message to the StateMachineWorkflowInstance.

C#
public void EnqueueItem(IComparable queueName, object item, System.Workflow.Runtime.IPendingWork pendingWork, object workItem);

Parameters

queueName
IComparable

The name of the workflow queue.

item
Object

The object to queue.

pendingWork
IPendingWork

An IPendingWork that allows the sender to be notified when the item is delivered.

workItem
Object

An object to be passed to the IPendingWork methods.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1