RuntimeTransactionHandle Class

Definition

Provides access to the run-time transaction in a workflow instance.

public ref class RuntimeTransactionHandle sealed : System::Activities::Handle, System::Activities::IExecutionProperty, System::Activities::IPropertyRegistrationCallback
[System.Runtime.Serialization.DataContract]
public sealed class RuntimeTransactionHandle : System.Activities.Handle, System.Activities.IExecutionProperty, System.Activities.IPropertyRegistrationCallback
[<System.Runtime.Serialization.DataContract>]
type RuntimeTransactionHandle = class
    inherit Handle
    interface IExecutionProperty
    interface IPropertyRegistrationCallback
Public NotInheritable Class RuntimeTransactionHandle
Inherits Handle
Implements IExecutionProperty, IPropertyRegistrationCallback
Inheritance
RuntimeTransactionHandle
Attributes
Implements

Constructors

RuntimeTransactionHandle()

Initializes a new instance of the RuntimeTransactionHandle class.

RuntimeTransactionHandle(Transaction)

Initializes a new instance of the RuntimeTransactionHandle class using the specified root transaction.

Properties

AbortInstanceOnTransactionFailure

Gets or sets whether the workflow instance should be aborted if the transaction fails.

ExecutionPropertyName

Gets the name to be used by this Handle when added to an activity's execution properties.

(Inherited from Handle)
Owner

Gets the ActivityInstance that contains the Variable that contains the Handle.

(Inherited from Handle)
SuppressTransaction

Gets or sets a value that indicates whether this run-time transaction is suppressed.

Methods

CompleteTransaction(NativeActivityContext)

Completes the current run-time transaction.

CompleteTransaction(NativeActivityContext, BookmarkCallback)

Completes the current run-time transaction and schedules the bookmark callback when the transaction is complete.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCurrentTransaction(AsyncCodeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(CodeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(NativeActivityContext)

Returns a reference to the current run-time transaction.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnInitialize(HandleInitializationContext)

Called by the workflow runtime when the environment that contains the Handle is initialized.

(Inherited from Handle)
OnUninitialize(HandleInitializationContext)

Called by the workflow runtime when the Variable for the Handle goes out of scope.

(Inherited from Handle)
RequestTransactionContext(NativeActivityContext, Action<NativeActivityTransactionContext,Object>, Object)

Initiates the creation of a NativeActivityTransactionContext for use with a new transaction.

RequireTransactionContext(NativeActivityContext, Action<NativeActivityTransactionContext,Object>, Object)

Initiates the creation of a NativeActivityTransactionContext for use with an existing transaction.

ThrowIfUninitialized()

Throws an InvalidOperationException if the Handle has not been initialized.

(Inherited from Handle)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IExecutionProperty.CleanupWorkflowThread()

For a description of this member, see CleanupWorkflowThread().

IExecutionProperty.SetupWorkflowThread()

For a description of this member, see SetupWorkflowThread().

IPropertyRegistrationCallback.Register(RegistrationContext)

For a description of this member, see Register(RegistrationContext).

IPropertyRegistrationCallback.Unregister(RegistrationContext)

For a description of this member, see Unregister(RegistrationContext).

Applies to