WorkflowQueue.RegisterForQueueItemAvailable Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Registra un sottoscrittore all'evento QueueItemAvailable .
Overload
| Nome | Descrizione |
|---|---|
| RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>) |
Registra un sottoscrittore all'evento QueueItemAvailable . |
| RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String) |
Registra un sottoscrittore all'evento QueueItemAvailable . |
Commenti
È possibile utilizzare i metodi di RegisterForQueueItemAvailable overload per registrare un sottoscrittore per l'evento QueueItemAvailable . L'evento QueueItemAvailable viene usato per notificare ai sottoscrittori che un elemento è stato recapitato (in modo asincrono) a questo WorkflowQueueoggetto .
RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)
Registra un sottoscrittore all'evento QueueItemAvailable .
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))
Parametri
- eventListener
- IActivityEventListener<QueueEventArgs>
Sottoscrittore per QueueEventArgs che implementa l'interfaccia IActivityEventListener<T> .
Eccezioni
eventListener è un riferimento Null (Nothing in Visual Basic).
Si applica a
RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String)
Registra un sottoscrittore all'evento QueueItemAvailable .
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)
Parametri
- eventListener
- IActivityEventListener<QueueEventArgs>
Sottoscrittore per QueueEventArgs che implementa l'interfaccia IActivityEventListener<T> .
- subscriberQualifiedName
- String
QualifiedName dell'attività che sottoscrive l'evento QueueItemAvailable o un riferimento Null (Nothing in Visual Basic).
Eccezioni
eventListener è un riferimento Null (Nothing).
Commenti
Se il nome completo dell'attività di sottoscrizione viene fornito da subscriberQualifiedName, viene restituito in WorkflowQueueInfo.SubscribedActivityNames di WorkflowQueueInfo associato a questa coda quando WorkflowInstance.GetWorkflowQueueData viene chiamato .