HandleExternalEventActivity::IEventActivity::Unsubscribe Method (ActivityExecutionContext^, IActivityEventListener<QueueEventArgs^>^)

 

Cancels the subscription of the HandleExternalEventActivity activity to an event.

Namespace:   System.Workflow.Activities
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

private:
virtual void Unsubscribe(
	ActivityExecutionContext^ parentContext,
	IActivityEventListener<QueueEventArgs^>^ parentEventHandler
) sealed = IEventActivity::Unsubscribe

Parameters

parentContext
Type: System.Workflow.ComponentModel::ActivityExecutionContext^

The ActivityExecutionContext that represents the execution environment of the activity.

parentEventHandler
Type: System.Workflow.ComponentModel::IActivityEventListener<QueueEventArgs^>^

The EventHandler for the parent event.

.NET Framework
Available since 3.0
Return to top
Show: