TrackingWorkflowSuspendedEventArgs Classe
Definição
Cuidado
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
Contém informações sobre o motivo pelo qual uma instância de fluxo de trabalho foi suspensa.Contains information about the reason that a workflow instance was suspended.
public ref class TrackingWorkflowSuspendedEventArgs : EventArgs
[System.Serializable]
public class TrackingWorkflowSuspendedEventArgs : EventArgs
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class TrackingWorkflowSuspendedEventArgs : EventArgs
[<System.Serializable>]
type TrackingWorkflowSuspendedEventArgs = class
inherit EventArgs
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type TrackingWorkflowSuspendedEventArgs = class
inherit EventArgs
Public Class TrackingWorkflowSuspendedEventArgs
Inherits EventArgs
- Herança
- Atributos
Exemplos
O exemplo de código a seguir demonstra um método, chamado WriteSuspendedEventArgs , que captura um TrackingWorkflowSuspendedEventArgs .The following code example demonstrates a method, named WriteSuspendedEventArgs, which captures a TrackingWorkflowSuspendedEventArgs. O código grava informações dos argumentos do método no console, incluindo o valor da Error propriedade.The code writes information from the method's arguments to the console, including the value of the Error property.
Este exemplo de código faz parte do exemplo de SDK de acompanhamento de EventArgs do arquivo Program. cs.This code example is part of the EventArgs Tracking SDK Sample from the Program.cs file. Para obter mais informações, consulte exemplo de acompanhamento de EventArgs.For more information, see EventArgs Tracking Sample.
static void WriteSuspendedEventArgs(string eventDescription, TrackingWorkflowSuspendedEventArgs suspendedEventArgs, DateTime eventDataTime)
{
Console.WriteLine("\nSuspended Event Arguments Read From Tracking Database:\n");
Console.WriteLine("EventDataTime: " + eventDataTime.ToString());
Console.WriteLine("EventDescription: " + eventDescription);
Console.WriteLine("SuspendedEventArgs Info: " + suspendedEventArgs.Error);
}
Shared Sub WriteSuspendedEventArgs(ByVal eventDescription As String, ByVal suspendedEventArgs As TrackingWorkflowSuspendedEventArgs, ByVal eventDataTime As DateTime)
Console.WriteLine(vbCrLf + "Suspended Event Arguments Read From Tracking Database:")
Console.WriteLine("EventDataTime: " + eventDataTime.ToString(CultureInfo.CurrentCulture))
Console.WriteLine("EventDescription: " + eventDescription)
Console.WriteLine("SuspendedEventArgs Info: " + suspendedEventArgs.Error)
End Sub
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.
Um TrackingWorkflowSuspendedEventArgs é gerado pela infraestrutura de rastreamento de tempo de execução quando uma instância de fluxo de trabalho é suspensa.A TrackingWorkflowSuspendedEventArgs is generated by the runtime tracking infrastructure when a workflow instance is suspended. Se o TrackingProfile associado a uma instância de fluxo de trabalho incluir um WorkflowTrackPoint configurado para um TrackingWorkflowEvent , a infraestrutura de rastreamento de fluxo de trabalho coloca um TrackingWorkflowSuspendedEventArgs no EventArgs WorkflowTrackingRecord que ele envia para o serviço de controle.If the TrackingProfile associated with a workflow instance includes a WorkflowTrackPoint configured for a TrackingWorkflowEvent, then the workflow tracking infrastructure puts a TrackingWorkflowSuspendedEventArgs in EventArgs in the WorkflowTrackingRecord that it sends to the Tracking service.
Observação
TrackingWorkflowSuspendedEventArgs é usado somente pelo serviço de acompanhamento de tempo de execução para transmitir informações em um WorkflowTrackingRecord .TrackingWorkflowSuspendedEventArgs is used only by the runtime tracking service to pass information in a WorkflowTrackingRecord. Os dados de um WorkflowRuntime.WorkflowSuspended evento são passados em um WorkflowSuspendedEventArgs .The data for a WorkflowRuntime.WorkflowSuspended event is passed in a WorkflowSuspendedEventArgs.
Propriedades
| Error |
Contém informações sobre o motivo pelo qual uma instância de fluxo de trabalho foi suspensa.Contains information about the reason that a workflow instance was suspended. Isso pode vir do Suspend(String) (erro de cadeia de caracteres) ou da propriedade Error definida na atividade SuspendActivity.This can come from the Suspend(String) (string error) or the Error property that you set on the SuspendActivity activity. |
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) |
| 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) |