ExternalDataEventArgs Construtores

Definição

Inicializa uma nova instância da classe ExternalDataEventArgs.

Sobrecargas

ExternalDataEventArgs()

Inicializa uma nova instância da classe ExternalDataEventArgs.

ExternalDataEventArgs(Guid)

Inicializa uma nova instância da classe ExternalDataEventArgs usando o identificador de instância do fluxo de trabalho.

ExternalDataEventArgs(Guid, IPendingWork, Object)

Inicializa uma nova instância da classe ExternalDataEventArgs.

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

Inicializa uma nova instância da classe ExternalDataEventArgs.

Exemplos

O exemplo a seguir mostra como chamar o construtor base ExternalDataEventArgs de um construtor de classe derivada. Este exemplo é do exemplo do SDK do Computador de Estado de Ordenação. Para obter mais informações, consulte Exemplo de Máquina de Estado de Ordenação.

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()

Inicializa uma nova instância da classe ExternalDataEventArgs.

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

Aplica-se a

ExternalDataEventArgs(Guid)

Inicializa uma nova instância da classe ExternalDataEventArgs usando o identificador de instância do fluxo de trabalho.

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

Parâmetros

instanceId
Guid

O identificador de instância de fluxo de trabalho para a instância de fluxo de trabalho que contém o HandleExternalEventActivity que é esperado para manipular o evento.

Aplica-se a

ExternalDataEventArgs(Guid, IPendingWork, Object)

Inicializa uma nova instância da classe ExternalDataEventArgs.

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)

Parâmetros

instanceId
Guid

O identificador de instância de fluxo de trabalho para a instância de fluxo de trabalho que contém o HandleExternalEventActivity que é esperado para manipular o evento.

workHandler
IPendingWork

O IPendingWork para permitir que o código externo, que aciona o evento, participe do lote.

workItem
Object

O objeto que contém código externo que aciona o evento.

Aplica-se a

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

Inicializa uma nova instância da classe ExternalDataEventArgs.

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)

Parâmetros

instanceId
Guid

O identificador de instância de fluxo de trabalho para a instância de fluxo de trabalho que contém o HandleExternalEventActivity que é esperado para manipular o evento.

workHandler
IPendingWork

O IPendingWork para permitir que o código externo que aciona o evento participe do lote.

workItem
Object

O objeto que contém código externo que aciona o evento.

waitForIdle
Boolean

Um valor que indica se o fluxo de trabalho deve ficar ocioso antes de acionar o evento; caso contrário, false.

Aplica-se a