An activity that supports compensation of its child activities.
Assembly: System.Activities (in System.Activities.dll)
Thetype exposes the following members.
|Body||Gets or sets the activity that is scheduled when the executes.|
|CacheId||Gets the identifier of the cache that is unique within the scope of the workflow definition. (Inherited from Activity.)|
|CancellationHandler||Gets or sets the activity that is scheduled when the activity is canceled.|
|CompensationHandler||Gets or sets the activity that is scheduled when compensation is performed on the .|
|ConfirmationHandler||Gets or sets the activity that is scheduled when confirmation is performed for this .|
|DisplayName||Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. (Inherited from Activity.)|
|Id||Gets an identifier that is unique in the scope of the workflow definition. (Inherited from Activity.)|
|ImplementationVersion||Gets or sets the implementation version of the activity. (Inherited from NativeActivity<TResult>.)|
|Result||Gets or sets the result argument for the Activity<TResult>. (Inherited from Activity<TResult>.)|
|ResultType||When implemented in a derived class, gets the type of an activity OutArgument. (Inherited from ActivityWithResult.)|
|Variables||Gets the collection of Variable objects for this .|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ShouldSerializeDisplayName||Indicates whether the DisplayName property should be serialized. (Inherited from Activity.)|
|ToString||Returns a String that contains the Id and DisplayName of the Activity. (Inherited from Activity.)|
allows a developer to specify a Body activity that defines a long-running task that performs their core business logic. It also allows the developer to optionally specify a compensation and confirmation activity to schedule appropriate business logic in the event of errors or successful completion of the Body. Compensation and confirmation of a is invoked by using the CompensationToken returned by the . CompensationToken is an opaque, typed object returned as the Result argument after successful completion of a activity’s Body. This CompensationToken is used by the Confirm and Compensate activities to explicitly invoke confirmation and compensation of a . can be composed in a nested hierarchical fashion in the workflow. For more information, seeCompensation Programming Model.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.