Confirm.Target Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the T:System.WorkflowModel.InArgument`1 that contains the T:System.Activities.Statements.CompensationHandle for this Confirm activity.

Namespace:   System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

public InArgument<CompensationToken> Target { get; set; }

Property Value

Type: System.Activities.InArgument<CompensationToken>

The T:System.WorkflowModel.InArgument`1 that contains the T:System.Activities.Statements.CompensationHandle for this Confirm activity.

When the Target of the T:System.Activities.Statements.CompensationHandle is specified, the Confirm activity explicitly invokes the confirmation handler of the CompensableActivity, which returns the T:System.Activities.Statements.CompensationHandle. When the Target of the T:System.Activities.Statements.CompensationHandle is not specified, the Confirm activity executes the default confirmation for any child CompensableActivity activities in the reverse order of successful completion. An InvalidOperationException is thrown if the Target refers to a CompensableActivity that was previously confirmed or compensated.

This property is read-only at runtime. If the value is set at runtime, an InvalidOperationException is raised.

.NET Framework
Available since 4.0
Return to top
Show: