TryCatch.Finally Property


The activity to be executed when the Try and any necessary activities in the Catches collection complete execution.

 property System::Activities::Activity ^ Finally { System::Activities::Activity ^ get(); void set(System::Activities::Activity ^ value); };
public System.Activities.Activity Finally { get; set; }
member this.Finally : System.Activities.Activity with get, set
Public Property Finally As Activity

Property Value

The activity that represents the Finally logic.



The following code sample demonstrates setting the Finally property of a TransactionScope activity. This example is from the Nesting of TransactionScope within a service sample.

Applies to