Aracılığıyla paylaş


IEventActivity.Unsubscribe Yöntem

Tanım

Bir Activity olayın aboneliğini iptal eder.

public:
 void Unsubscribe(System::Workflow::ComponentModel::ActivityExecutionContext ^ parentContext, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^> ^ parentEventHandler);
public void Unsubscribe (System.Workflow.ComponentModel.ActivityExecutionContext parentContext, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> parentEventHandler);
abstract member Unsubscribe : System.Workflow.ComponentModel.ActivityExecutionContext * System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> -> unit
Public Sub Unsubscribe (parentContext As ActivityExecutionContext, parentEventHandler As IActivityEventListener(Of QueueEventArgs))

Parametreler

parentContext
ActivityExecutionContext

öğesinin ActivityExecutionContext yürütme ortamını temsil eden .Activity

parentEventHandler
IActivityEventListener<QueueEventArgs>

EventHandler Üst olay için.

Açıklamalar

Aşağıdaki kod örneğinde yönteminin nasıl kullanılacağı gösterilmektedir Unsubscribe . Bu kod örneği, FileSystemEvent.cs dosyasındaki FileWatcher SDK Örneğinin bir parçasıdır. Daha fazla bilgi için bkz. Dosya Sistemi İzleyicisi Etkinliği.

// Add an instance of the External Data Exchange Service
ExternalDataExchangeService externalDataExchangeService = new ExternalDataExchangeService();
workflowRuntime.AddService(externalDataExchangeService);
' Add an instance of the External Data Exchange Service
Dim externalDataExchange As New ExternalDataExchangeService()
workflowRuntime.AddService(externalDataExchange)

Şunlara uygulanır