CallDisconnectedEventActivity.IEventActivity.Subscribe Method
Creates the subscription of an System.Workflow.ComponentModel.Activity to a Microsoft Unified Communications Managed API event.
Namespace: Microsoft.Rtc.Workflow.Activities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Private Sub Subscribe ( _
parentContext As ActivityExecutionContext, _
parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
) Implements IEventActivity.Subscribe
void IEventActivity.Subscribe(
ActivityExecutionContext parentContext,
IActivityEventListener<QueueEventArgs> parentEventHandler
)
private:
virtual void Subscribe(
ActivityExecutionContext^ parentContext,
IActivityEventListener<QueueEventArgs^>^ parentEventHandler
) sealed = IEventActivity::Subscribe
JavaScript does not support explicit interface implementations.
Parameters
- parentContext
Type: System.Workflow.ComponentModel.ActivityExecutionContext
The System.Workflow.ComponentModel.ActivityExecutionContext that represents the execution environment of the System.Workflow.ComponentModel.Activity.
- parentEventHandler
Type: System.Workflow.ComponentModel.IActivityEventListener<QueueEventArgs>
The System.EventHandler for the parent event.
Implements
IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | Thrown if the argument is null. |
System.InvalidOperationException | Thrown if retrieving CommunicationsWorkflowRuntimeService fails. |
System.InvalidOperationException | Thrown if CallProvider or CallProvider.Call is null. |