CallDisconnectedEventActivity.IEventActivity.Unsubscribe Method
Cancels 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 Unsubscribe ( _
parentContext As ActivityExecutionContext, _
parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
) Implements IEventActivity.Unsubscribe
'Usage
Dim instance As CallDisconnectedEventActivity
Dim parentContext As ActivityExecutionContext
Dim parentEventHandler As IActivityEventListener(Of QueueEventArgs)
CType(instance, IEventActivity).Unsubscribe(parentContext, _
parentEventHandler)
void IEventActivity.Unsubscribe(
ActivityExecutionContext parentContext,
IActivityEventListener<QueueEventArgs> parentEventHandler
)
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.Unsubscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the argument is null. |
InvalidOperationException | Thrown if retrieving CommunicationsWorkflowRuntimeService fails. |
InvalidOperationException | Thrown if CallProvider or CallProvider.Call is null. |
See Also
Reference
CallDisconnectedEventActivity Class