WorkflowApplication.Aborted Özellik

Tanım

İş akışı örneği durdurulduğunda çağrılan öğesini alır veya ayarlar Action<T> .

public:
 property Action<System::Activities::WorkflowApplicationAbortedEventArgs ^> ^ Aborted { Action<System::Activities::WorkflowApplicationAbortedEventArgs ^> ^ get(); void set(Action<System::Activities::WorkflowApplicationAbortedEventArgs ^> ^ value); };
public Action<System.Activities.WorkflowApplicationAbortedEventArgs> Aborted { get; set; }
member this.Aborted : Action<System.Activities.WorkflowApplicationAbortedEventArgs> with get, set
Public Property Aborted As Action(Of WorkflowApplicationAbortedEventArgs)

Özellik Değeri

İş akışı örneği durdurulduğunda çağrılan eylem.

Örnekler

Aşağıdaki kod örneği, bir WorkflowApplicationAbortedEventArgs örneğin işleyicisine Aborted geçirilen öğesini inceler WorkflowApplication ve iş akışının neden durdurulup durdurulmadığını gösterir.

wfApp.Aborted = delegate(WorkflowApplicationAbortedEventArgs e)
{
    // Display the exception that caused the workflow
    // to abort.
    Console.WriteLine("Workflow {0} Aborted.", e.InstanceId);
    Console.WriteLine("Exception: {0}\n{1}",
        e.Reason.GetType().FullName,
        e.Reason.Message);
};

Açıklamalar

tarafından WorkflowApplication barındırılan bir iş akışı durdurulduğunda, Aborted işleyici çağrılır ve Completed işleyici çağrılmıyor.

Şunlara uygulanır