TryCatch.Try Property

Definition

The activity first executed when the TryCatch executes.

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

Property Value

Activity

The activity.

Attributes

Examples

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

Applies to