Partilhar via


CallControlEventActivity.Unsubscribe Method

Cancels the subscription of the CallControlEventActivity to an event.

Namespace:  Microsoft.Rtc.Workflow.Activities
Assembly:  Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

'Declaration
Protected Overridable Sub Unsubscribe ( _
    parentContext As ActivityExecutionContext, _
    parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
)
'Usage
Dim parentContext As ActivityExecutionContext
Dim parentEventHandler As IActivityEventListener(Of QueueEventArgs)

Me.Unsubscribe(parentContext, parentEventHandler)
protected virtual void Unsubscribe(
    ActivityExecutionContext parentContext,
    IActivityEventListener<QueueEventArgs> parentEventHandler
)

Parameters

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

CallControlEventActivity Class

CallControlEventActivity Members

Microsoft.Rtc.Workflow.Activities Namespace