WorkflowQueue.RegisterForQueueItemAvailable 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.
Registers a subscriber to the QueueItemAvailable event.
Overloads
| Name | Description |
|---|---|
| RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>) |
Registers a subscriber to the QueueItemAvailable event. |
| RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String) |
Registers a subscriber to the QueueItemAvailable event. |
Remarks
You can use the overloaded RegisterForQueueItemAvailable methods to register a subscriber for the QueueItemAvailable event. The QueueItemAvailable event is used to notify subscribers that an item has been delivered (in an asynchronous manner) to this WorkflowQueue.
RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)
Registers a subscriber to the QueueItemAvailable event.
public:
void RegisterForQueueItemAvailable(System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^> ^ eventListener);
public void RegisterForQueueItemAvailable(System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> eventListener);
member this.RegisterForQueueItemAvailable : System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> -> unit
Public Sub RegisterForQueueItemAvailable (eventListener As IActivityEventListener(Of QueueEventArgs))
Parameters
- eventListener
- IActivityEventListener<QueueEventArgs>
A subscriber for QueueEventArgs that implements the IActivityEventListener<T> interface.
Exceptions
eventListener is a null reference (Nothing in Visual Basic).
Applies to
RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String)
Registers a subscriber to the QueueItemAvailable event.
public:
void RegisterForQueueItemAvailable(System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^> ^ eventListener, System::String ^ subscriberQualifiedName);
public void RegisterForQueueItemAvailable(System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> eventListener, string subscriberQualifiedName);
member this.RegisterForQueueItemAvailable : System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> * string -> unit
Public Sub RegisterForQueueItemAvailable (eventListener As IActivityEventListener(Of QueueEventArgs), subscriberQualifiedName As String)
Parameters
- eventListener
- IActivityEventListener<QueueEventArgs>
A subscriber for QueueEventArgs that implements the IActivityEventListener<T> interface.
- subscriberQualifiedName
- String
The QualifiedName of the activity that is subscribing to the QueueItemAvailable event or a null reference (Nothing in Visual Basic).
Exceptions
eventListener is a null reference (Nothing).
Remarks
If the qualified name of the subscribing activity is supplied by subscriberQualifiedName, it is returned in WorkflowQueueInfo.SubscribedActivityNames of WorkflowQueueInfo associated with this queue when WorkflowInstance.GetWorkflowQueueData is called.