InvokeWorkflowActivity Classe

Definição

Cuidado

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Executa de modo assíncrono um fluxo de trabalho de outro fluxo de trabalho.Asynchronously runs one workflow from another. Essa classe não pode ser herdada.This class cannot be inherited.

public ref class InvokeWorkflowActivity sealed : System::Workflow::ComponentModel::Activity, System::Workflow::ComponentModel::Design::ITypeFilterProvider
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.InvokeWorkflowActivity), "Resources.Service.bmp")]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.InvokeWorkflowValidator))]
public sealed class InvokeWorkflowActivity : System.Workflow.ComponentModel.Activity, System.Workflow.ComponentModel.Design.ITypeFilterProvider
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.InvokeWorkflowActivity), "Resources.Service.bmp")]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.InvokeWorkflowValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class InvokeWorkflowActivity : System.Workflow.ComponentModel.Activity, System.Workflow.ComponentModel.Design.ITypeFilterProvider
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.InvokeWorkflowActivity), "Resources.Service.bmp")>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.InvokeWorkflowValidator))>]
type InvokeWorkflowActivity = class
    inherit Activity
    interface ITypeFilterProvider
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.InvokeWorkflowActivity), "Resources.Service.bmp")>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.InvokeWorkflowValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type InvokeWorkflowActivity = class
    inherit Activity
    interface ITypeFilterProvider
Public NotInheritable Class InvokeWorkflowActivity
Inherits Activity
Implements ITypeFilterProvider
Herança
InvokeWorkflowActivity
Atributos
Implementações

Comentários

Observação

Este material discute tipos e namespaces obsoletos.This material discusses types and namespaces that are obsolete. Para obter mais informações, consulte Deprecated Types in Windows Workflow Foundation 4.5 (Tipos preteridos no Windows Workflow Foundation 4.5).For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

A InvokeWorkflowActivity primeira chama o Invoking método code-beside, se um for especificado.The InvokeWorkflowActivity first calls the Invoking code-beside method, if one is specified. Normalmente, esse método é usado para configurar parâmetros de entrada para a instância de fluxo de trabalho a ser invocada.Typically, this method is used to set up incoming parameters for the workflow instance to be invoked.

InvokeWorkflowActivity em seguida, cria e invoca uma instância de fluxo de trabalho do tipo especificado, passando os parâmetros que são fornecidos.InvokeWorkflowActivity then creates and invokes a workflow instance of the specified type, passing the parameters that are provided. Assim que o fluxo de trabalho é invocado, o é InvokeWorkflowActivity concluído imediatamente.As soon as the workflow is invoked, the InvokeWorkflowActivity finishes immediately.

Construtores

InvokeWorkflowActivity()

Inicializa uma nova instância da classe InvokeWorkflowActivity.Initializes a new instance of the InvokeWorkflowActivity class.

InvokeWorkflowActivity(String)

Inicializa uma nova instância da classe InvokeWorkflowActivity usando o nome da atividade.Initializes a new instance of the InvokeWorkflowActivity class using the name of the activity.

Campos

InstanceIdProperty

Representa o DependencyProperty que tem como destino a propriedade InstanceId.Represents the DependencyProperty that targets the InstanceId property.

InvokingEvent

Representa o DependencyProperty que destina-se ao evento Invoking.Represents the DependencyProperty that targets the Invoking event.

ParameterBindingsProperty

Representa o DependencyProperty que tem como destino a propriedade ParameterBindingsProperty.Represents the DependencyProperty that targets the ParameterBindingsProperty property.

TargetWorkflowProperty

Representa o DependencyProperty que tem como destino a propriedade TargetWorkflow.Represents the DependencyProperty that targets the TargetWorkflow property.

Propriedades

Description

Obtém ou define a descrição definida pelo usuário da Activity.Gets or sets the user-defined description of the Activity.

(Herdado de Activity)
DesignMode

Obtém o valor que indica se esta instância está em modo de design ou de tempo de execução.Gets the value that indicates whether this instance is in design or run-time mode.

(Herdado de DependencyObject)
Enabled

Obtém ou define um valor que indica se esta instância está habilitada para execução e validação.Gets or sets a value that indicates whether this instance is enabled for execution and validation.

(Herdado de Activity)
ExecutionResult

Obtém o ActivityExecutionResult da última tentativa de executar essa instância.Gets the ActivityExecutionResult of the last attempt to run this instance.

(Herdado de Activity)
ExecutionStatus

Obtém o ActivityExecutionStatus atual dessa instância.Gets the current ActivityExecutionStatus of this instance.

(Herdado de Activity)
InstanceId

Obtém o Guid que indica a instância de fluxo de trabalho recém-criada.Gets the Guid that indicates the newly created workflow instance.

IsDynamicActivity

Obtém informações sobre se a atividade está em execução dentro do ActivityExecutionContext padrão da instância de fluxo de trabalho.Gets information about whether the activity is executing within the default ActivityExecutionContext of the workflow instance.

(Herdado de Activity)
Name

Obtém ou define o nome desta instância.Gets or sets the name of this instance. Este nome deve estar em conformidade com as convenções de nomenclatura de variável da linguagem de programação que está sendo usada no projeto de fluxo de trabalho.This name must conform to the variable naming convention of the programming language that is being used in the Workflow project.

(Herdado de Activity)
ParameterBindings

Obtém a coleção de parâmetros aos quais se associar.Gets the collection of parameters to bind to.

Parent

Obtém o CompositeActivity que contém esse Activity.Gets the CompositeActivity that contains this Activity.

(Herdado de Activity)
ParentDependencyObject

Obtém o DependencyObject pai no grafo DependencyObject.Gets the parent DependencyObject in the DependencyObject graph.

(Herdado de DependencyObject)
QualifiedName

Obtém o nome qualificado da atividade.Gets the qualified name of the activity. Nomes de atividades qualificados sempre são exclusivos em uma instância de fluxo de trabalho.Qualified activity names are always unique in a workflow instance.

(Herdado de Activity)
Site

Obtém ou define uma referência ao componente Site do DependencyObject.Gets or sets a reference to the Site component of the DependencyObject.

(Herdado de DependencyObject)
TargetWorkflow

Obtém ou define o Type do fluxo de trabalho a ser invocado.Gets or sets the Type of the workflow to be invoked.

UserData

Obtém um IDictionary que associa dados personalizados a essa instância de classe.Gets an IDictionary that associates custom data with this class instance.

(Herdado de DependencyObject)
WorkflowInstanceId

Obtém o Guid associado à instância.Gets the Guid associated with the instance.

(Herdado de Activity)

Métodos

AddHandler(DependencyProperty, Object)

Adiciona um manipulador para um evento de um DependencyObject.Adds a handler for an event of a DependencyObject.

(Herdado de DependencyObject)
Cancel(ActivityExecutionContext)

Chamado pelo runtime de fluxo de trabalho para cancelar a execução de uma atividade que está sendo executada no momento.Called by the workflow runtime to cancel execution of an activity that is currently executing.

(Herdado de Activity)
Clone()

Cria uma cópia profunda do Activity.Creates a deep copy of the Activity.

(Herdado de Activity)
Dispose()

Libera todos os recursos usados pelo DependencyObject.Releases all the resources used by the DependencyObject.

(Herdado de DependencyObject)
Dispose(Boolean)

Libera os recursos não gerenciados usados e opcionalmente os gerenciados usados pelo DependencyObject.Releases the unmanaged resources and optionally releases the managed resources used by DependencyObject.

(Herdado de DependencyObject)
Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
Execute(ActivityExecutionContext)

Chamado pelo runtime de fluxo de trabalho para executar uma atividade.Called by the workflow runtime to execute an activity.

(Herdado de Activity)
GetActivityByName(String)

Retorna a instância do Activity cujo nome é solicitado do conjunto de todas as atividades em execução na atividade raiz desta instância, que está dentro do fluxo de trabalho.Returns the instance of the Activity whose name is requested from the set of all activities running under the root activity of this instance, which is within the workflow.

(Herdado de Activity)
GetActivityByName(String, Boolean)

Retorna a instância do Activity cujo nome é solicitado do conjunto de todas as atividades sob a raiz do Activity desta instância se o segundo parâmetro é false e no Activity atual se o parâmetro é true.Returns the instance of the Activity whose name is requested from the set of all activities under the root the Activity of this instance if the second parameter is false and under the current Activity if the second parameter is true.

(Herdado de Activity)
GetBinding(DependencyProperty)

Fornece acesso para ao ActivityBind associado ao DependencyProperty específico.Provides access to the ActivityBind associated with the specific DependencyProperty.

(Herdado de DependencyObject)
GetBoundValue(ActivityBind, Type)

Recupera o Object que é a entidade de um ActivityBind.Retrieves the Object that is the subject of an ActivityBind.

(Herdado de DependencyObject)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetInvocationList<T>(DependencyProperty)

Obtém uma matriz que contém os delegados para o DependencyProperty especificado.Gets an array that contains the delegates for the specified DependencyProperty.

(Herdado de DependencyObject)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
GetValue(DependencyProperty)

Fornece acesso ao valor do DependencyProperty designado.Provides access to the value of the designated DependencyProperty.

(Herdado de DependencyObject)
GetValueBase(DependencyProperty)

Fornece acesso ao objeto associado de um DependencyProperty e ignora a substituição de GetValue(DependencyProperty).Provides access to the bound object of a DependencyProperty and bypasses the GetValue(DependencyProperty) override.

(Herdado de DependencyObject)
HandleFault(ActivityExecutionContext, Exception)

Chamado quando uma exceção é gerada dentro do contexto da execução desta instância.Called when an exception is raised within the context of the execution of this instance.

(Herdado de Activity)
Initialize(IServiceProvider)

Chamado pelo runtime de fluxo de trabalho para inicializar uma atividade durante a construção de uma nova instância de fluxo de trabalho.Called by the workflow runtime to initialize an activity during the construction of a new workflow instance. Este método é chamado durante a construção de um ActivityExecutionContext dinâmico.This method is called during the construction of a dynamic ActivityExecutionContext.

(Herdado de Activity)
InitializeProperties()

Executa a inicialização nas propriedades de dependência quando substituído em uma classe derivada.Performs initialization on dependency properties when overridden in a derived class.

(Herdado de DependencyObject)
Invoke<T>(EventHandler<T>, T)

Assina um EventHandler e invoca esse delegado.Subscribes an EventHandler and invokes that delegate.

(Herdado de Activity)
Invoke<T>(IActivityEventListener<T>, T)

Assina um IActivityEventListener<T> e invoca esse delegado.Subscribes an IActivityEventListener<T> and invokes that delegate.

(Herdado de Activity)
IsBindingSet(DependencyProperty)

Indica se o valor de um DependencyProperty é definido como uma associação.Indicates whether the value of a DependencyProperty is set as a binding. Consulte SetBinding(DependencyProperty, ActivityBind).See SetBinding(DependencyProperty, ActivityBind).

(Herdado de DependencyObject)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
MetaEquals(DependencyObject)

Determina se o metaproperties deste DependencyObject é igual a metaproperties do DependencyObject com parâmetros.Determines whether the metaproperties of this DependencyObject equals the metaproperties of the parameterized DependencyObject.

(Herdado de DependencyObject)
OnActivityExecutionContextLoad(IServiceProvider)

Chamado pelo runtime de fluxo de trabalho sempre que um ActivityExecutionContext é carregado.Called by the workflow runtime whenever an ActivityExecutionContext is loaded. Por exemplo, este método é chamado durante a criação de um ActivityExecutionContext, bem como toda vez que o ActivityExecutionContext é reencarnado quando uma instância de fluxo de trabalho é carregada do armazenamento persistente.For example, this method is called during the creation of an ActivityExecutionContext as well as every time the ActivityExecutionContext is reincarnated when a workflow instance is loaded from persistent storage.

(Herdado de Activity)
OnActivityExecutionContextUnload(IServiceProvider)

Chamado pelo runtime de fluxo de trabalho sempre que um ActivityExecutionContext é descarregado.Called by the workflow runtime whenever an ActivityExecutionContext is unloaded. Por exemplo, este método é chamado durante a conclusão de um ActivityExecutionContext, bem como toda vez que ActivityExecutionContext é descarregado quando uma instância de fluxo de trabalho é persistida.For example, this method is called during completion of an ActivityExecutionContext as well as every time the ActivityExecutionContext is unloaded when a workflow instance is persisted.

(Herdado de Activity)
OnClosed(IServiceProvider)

Chamado pelo runtime de fluxo de trabalho como parte da transição da atividade para o estado fechado.Called by the workflow runtime as part of the activity's transition to the closed state.

(Herdado de Activity)
RaiseEvent(DependencyProperty, Object, EventArgs)

Gera um Event associado à propriedade de dependência especificada.Raises an Event associated with the specified dependency property.

(Herdado de Activity)
RaiseGenericEvent<T>(DependencyProperty, Object, T)

Gera o evento associado com o DependencyProperty referenciado.Raises the event associated with the referenced DependencyProperty.

(Herdado de Activity)
RegisterForStatusChange(DependencyProperty, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>)

Registra o DependencyProperty especificado para o evento de alteração de status.Registers the specified DependencyProperty for the status change event.

(Herdado de Activity)
RemoveHandler(DependencyProperty, Object)

Remove um EventHandler de um DependencyProperty associado.Removes an EventHandler from an associated DependencyProperty.

(Herdado de DependencyObject)
RemoveProperty(DependencyProperty)

Remove um DependencyProperty do DependencyObject.Removes a DependencyProperty from the DependencyObject.

(Herdado de DependencyObject)
Save(Stream)

Grava o Activity para um Stream para persistência.Writes the Activity to a Stream for persistence.

(Herdado de Activity)
Save(Stream, IFormatter)

Grava o Activity para um Stream para persistência usando o IFormatter personalizado fornecido para a serialização.Writes the Activity to a Stream for persistence using the custom IFormatter provided for serialization.

(Herdado de Activity)
SetBinding(DependencyProperty, ActivityBind)

Define o ActivityBind para o DependencyProperty especificado.Sets the ActivityBind for the specified DependencyProperty.

(Herdado de DependencyObject)
SetBoundValue(ActivityBind, Object)

Define o valor do ActivityBind de destino.Sets the value of the target ActivityBind.

(Herdado de DependencyObject)
SetReadOnlyPropertyValue(DependencyProperty, Object)

Define o valor de um DependencyProperty, que é somente leitura.Sets the value of a DependencyProperty, which is read-only.

(Herdado de DependencyObject)
SetValue(DependencyProperty, Object)

Define o valor do DependencyProperty para o objeto.Sets the value of the DependencyProperty to the object.

(Herdado de DependencyObject)
SetValueBase(DependencyProperty, Object)

Define o valor da DependencyProperty usando o Object especificado, ignorando o SetValue(DependencyProperty, Object).Sets the value of the DependencyProperty to the specified Object, bypassing the SetValue(DependencyProperty, Object).

(Herdado de DependencyObject)
ToString()

Fornece uma cadeia de caracteres que representa essa instância.Provides a string that represents this instance.

(Herdado de Activity)
TrackData(Object)

Informa a infraestrutura de acompanhamento de tempo de execução das informações de acompanhamento pendentes.Informs the run-time tracking infrastructure of pending tracking information.

(Herdado de Activity)
TrackData(String, Object)

Informa a infraestrutura de acompanhamento de tempo de execução das informações de acompanhamento pendentes.Informs the run-time tracking infrastructure of pending tracking information.

(Herdado de Activity)
Uninitialize(IServiceProvider)

Quando substituído em uma classe derivada, fornece o cancelamento de inicialização por um provedor de serviço para a atividade.When overridden in a derived class, provides un-initialization by a service provider for the activity.

(Herdado de Activity)
UnregisterForStatusChange(DependencyProperty, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>)

Cancela o registro do DependencyProperty especificado para o evento de alteração de status.Un-registers the specified DependencyProperty for the status change event.

(Herdado de Activity)

Eventos

Canceling

Ocorre quando a execução da atividade é cancelada.Occurs when the activity execution is canceled.

(Herdado de Activity)
Closed

Ocorre quando um Activity concluiu a execução.Occurs when an Activity has completed execution.

(Herdado de Activity)
Compensating

Ocorre durante a execução de um método de compensação no Activity.Occurs when running a compensation method on the Activity.

(Herdado de Activity)
Executing

Ocorre quando o Activity é executado.Occurs when the Activity is run.

(Herdado de Activity)
Faulting

Ocorre quando uma exceção é gerada durante a execução da instância.Occurs when an exception is raised during the running of the instance.

(Herdado de Activity)
Invoking

Ocorre antes que o fluxo de trabalho seja invocado.Occurs before the workflow is invoked.

StatusChanged

Ocorre quando o ActivityExecutionStatus de um Activity em execução muda.Occurs when the ActivityExecutionStatus of a running Activity changes.

(Herdado de Activity)

Implantações explícitas de interface

IComponent.Disposed

Representa o método que manipula o evento Disposed de um componente.Represents the method that handles the Disposed event of a component.

(Herdado de DependencyObject)
ITypeFilterProvider.CanFilterType(Type, Boolean)

Determina se o Type pode ser filtrado pelo fluxo de trabalho.Determines whether the Type can be filtered by the workflow.

ITypeFilterProvider.FilterDescription

Obtém uma descrição do filtro que está sendo usado pelo fluxo de trabalho.Gets a description of the filter being used by the workflow.

Aplica-se a