TerminateWorkflow.Exception Egenskap

Definition

Hämtar eller anger undantaget som utlöste instansavslutningen.

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

Egenskapsvärde

Undantaget.

Kommentarer

Undantaget som skickas till Terminate är ett WorkflowApplicationTerminatedException om endast Reason anges. Om endast Exception anges skickas undantaget till Terminate. Om både Reason och Exception anges skickas en WorkflowApplicationTerminatedException med den angivna Reason, och Exception anges som undantagets InnerException egenskap. Om inget av dem anges skapas ett standardvärde WorkflowApplicationTerminatedException .

Gäller för