Partager via


CommandActivity.IEventActivity.Unsubscribe Method

Called to get the CommandActivity to delete the queue for its 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 CommandActivity
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

Implements

IEventActivity.Unsubscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

Exceptions

Exception Condition
ArgumentNullException

Thrown if argument is null.

See Also

Reference

CommandActivity Class

CommandActivity Members

Microsoft.Rtc.Workflow.Activities Namespace