WorkflowApplicationIdleEventArgs Classe
Definição
Contém informações sobre a instância de fluxo de trabalho que ficou ociosa.Holds information about the workflow instance that has become idle.
public ref class WorkflowApplicationIdleEventArgs : System::Activities::WorkflowApplicationEventArgs
public class WorkflowApplicationIdleEventArgs : System.Activities.WorkflowApplicationEventArgs
type WorkflowApplicationIdleEventArgs = class
inherit WorkflowApplicationEventArgs
Public Class WorkflowApplicationIdleEventArgs
Inherits WorkflowApplicationEventArgs
- Herança
Exemplos
O exemplo de código inspeciona WorkflowApplicationIdleEventArgs passado para o manipulador de Idle de uma instância de WorkflowApplication .The following code example inspects the WorkflowApplicationIdleEventArgs passed into the Idle handler of a WorkflowApplication instance. Nesse exemplo a ociosa indo de fluxo de trabalho tem um Bookmark com um nome de EnterGuess, possuídas por uma atividade chamada ReadInt.In this example the workflow going idle has one Bookmark with a name of EnterGuess, owned by an activity named ReadInt. Este exemplo de código se baseia em como: executar um fluxo de trabalho, que faz parte do Tutorial de Introdução [ .NET Framework 4,5].This code example is based off of How to: Run a Workflow, which is part of the Getting Started Tutorial [.NET Framework 4.5]. Se o manipulador de Idle nessa etapa é alterado para conter o código deste exemplo, a seguinte saída são exibidas.If the Idle handler in that step is modified to contain the code from this example, the following output is displayed.
BookmarkName: EnterGuess - OwnerDisplayName: ReadInt
wfApp.Idle = delegate(WorkflowApplicationIdleEventArgs e)
{
foreach (BookmarkInfo info in e.Bookmarks)
{
Console.WriteLine("BookmarkName: {0} - OwnerDisplayName: {1}",
info.BookmarkName, info.OwnerDisplayName);
}
idleEvent.Set();
};
Propriedades
| Bookmarks |
Obtém a coleção somente leitura de indicadores da instância de fluxo de trabalho.Gets the read-only collection of bookmarks for the workflow instance. |
| InstanceId |
O identificador exclusivo da instância do fluxo de trabalho.The unique identifier of the workflow instance. (Herdado de WorkflowApplicationEventArgs) |
Métodos
| 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) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetInstanceExtensions<T>() |
Obtém a coleção de extensões do tipo especificado.Gets the collection of extensions of the specified type. (Herdado de WorkflowApplicationEventArgs) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |