Rediger

Del via


ExternalDataEventArgs Constructors

Definition

Initializes a new instance of the ExternalDataEventArgs class.

Overloads

ExternalDataEventArgs()

Initializes a new instance of the ExternalDataEventArgs class.

ExternalDataEventArgs(Guid)

Initializes a new instance of the ExternalDataEventArgs class using the instance identifier of the workflow.

ExternalDataEventArgs(Guid, IPendingWork, Object)

Initializes a new instance of the ExternalDataEventArgs class.

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

Initializes a new instance of the ExternalDataEventArgs class.

Examples

The following example shows how to call the base ExternalDataEventArgs constructor from a derived class' constructor. This example is from the Ordering State Machine SDK sample. For more information, see Ordering State Machine Sample.

public override void Dispose()
{
    try
    {
        IDesignerLoaderHost host = LoaderHost;
        if (host != null)
        {
            host.RemoveService(typeof(IIdentifierCreationService));
            host.RemoveService(typeof(IMenuCommandService));
            host.RemoveService(typeof(IToolboxService));
            host.RemoveService(typeof(ITypeProvider), true);
            host.RemoveService(typeof(IWorkflowCompilerOptionsService));
            host.RemoveService(typeof(IEventBindingService));
        }
    }
    finally
    {
        base.Dispose();
    }
}
Public Overrides Sub Dispose()
    Try
        Dim host As IDesignerLoaderHost = LoaderHost
        If host IsNot Nothing Then
            host.RemoveService(GetType(IIdentifierCreationService))
            host.RemoveService(GetType(IMenuCommandService))
            host.RemoveService(GetType(IToolboxService))
            host.RemoveService(GetType(ITypeProvider), True)
            host.RemoveService(GetType(IWorkflowCompilerOptionsService))
            host.RemoveService(GetType(IEventBindingService))
        End If
    Finally
        MyBase.Dispose()
    End Try
End Sub

ExternalDataEventArgs()

Initializes a new instance of the ExternalDataEventArgs class.

public:
 ExternalDataEventArgs();
public ExternalDataEventArgs ();
Public Sub New ()

Applies to

ExternalDataEventArgs(Guid)

Initializes a new instance of the ExternalDataEventArgs class using the instance identifier of the workflow.

public:
 ExternalDataEventArgs(Guid instanceId);
public ExternalDataEventArgs (Guid instanceId);
new System.Workflow.Activities.ExternalDataEventArgs : Guid -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid)

Parameters

instanceId
Guid

The workflow instance identifier for the workflow instance that contains the HandleExternalEventActivity that is expected to handle the event.

Applies to

ExternalDataEventArgs(Guid, IPendingWork, Object)

Initializes a new instance of the ExternalDataEventArgs class.

public:
 ExternalDataEventArgs(Guid instanceId, System::Workflow::Runtime::IPendingWork ^ workHandler, System::Object ^ workItem);
public ExternalDataEventArgs (Guid instanceId, System.Workflow.Runtime.IPendingWork workHandler, object workItem);
new System.Workflow.Activities.ExternalDataEventArgs : Guid * System.Workflow.Runtime.IPendingWork * obj -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid, workHandler As IPendingWork, workItem As Object)

Parameters

instanceId
Guid

The workflow instance identifier for the workflow instance that contains the HandleExternalEventActivity that is expected to handle the event.

workHandler
IPendingWork

The IPendingWork to allow the external code, raising the event, to participate in the batch.

workItem
Object

The object that contains the external code that raises the event.

Applies to

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

Initializes a new instance of the ExternalDataEventArgs class.

public:
 ExternalDataEventArgs(Guid instanceId, System::Workflow::Runtime::IPendingWork ^ workHandler, System::Object ^ workItem, bool waitForIdle);
public ExternalDataEventArgs (Guid instanceId, System.Workflow.Runtime.IPendingWork workHandler, object workItem, bool waitForIdle);
new System.Workflow.Activities.ExternalDataEventArgs : Guid * System.Workflow.Runtime.IPendingWork * obj * bool -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid, workHandler As IPendingWork, workItem As Object, waitForIdle As Boolean)

Parameters

instanceId
Guid

The workflow instance identifier for the workflow instance that contains the HandleExternalEventActivity that is expected to handle the event.

workHandler
IPendingWork

The IPendingWork to allow the external code that raises the event to participate in the batch.

workItem
Object

The object that contains the external code that raises the event.

waitForIdle
Boolean

A value that indicates whether the workflow should go idle before raising the event; otherwise, false.

Applies to