TryCatch.Finally Property

Definition

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

public:
 property System::Activities::Activity ^ Finally { System::Activities::Activity ^ get(); void set(System::Activities::Activity ^ value); };
[System.Windows.Markup.DependsOn("Catches")]
public System.Activities.Activity Finally { get; set; }
[<System.Windows.Markup.DependsOn("Catches")>]
member this.Finally : System.Activities.Activity with get, set
Public Property Finally As Activity

Property Value

Activity

The activity that represents the Finally logic.

Attributes

Examples

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