WorkflowApplicationAbortedEventArgs Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data about an aborted workflow instance.
public ref class WorkflowApplicationAbortedEventArgs : System::Activities::WorkflowApplicationEventArgs
public class WorkflowApplicationAbortedEventArgs : System.Activities.WorkflowApplicationEventArgs
type WorkflowApplicationAbortedEventArgs = class
inherit WorkflowApplicationEventArgs
Public Class WorkflowApplicationAbortedEventArgs
Inherits WorkflowApplicationEventArgs
- Inheritance
The following code example inspects the WorkflowApplicationAbortedEventArgs passed into the Aborted handler of a WorkflowApplication instance and displays information about why workflow was aborted.
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);
};
When a workflow hosted by a WorkflowApplication is aborted, the Aborted handler is invoked and the Completed handler is not invoked.
Instance |
The unique identifier of the workflow instance. (Inherited from WorkflowApplicationEventArgs) |
Reason |
Gets the exception that provides information about why the workflow instance was aborted. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the collection of extensions of the specified type. (Inherited from WorkflowApplicationEventArgs) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: