RuntimeTransactionHandle RuntimeTransactionHandle RuntimeTransactionHandle 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
type RuntimeTransactionHandle = class
    inherit Handle
    interface IExecutionProperty
    interface IPropertyRegistrationCallback
Public NotInheritable Class RuntimeTransactionHandle
Inherits Handle
Implements IExecutionProperty, IPropertyRegistrationCallback
Inheritance
RuntimeTransactionHandleRuntimeTransactionHandleRuntimeTransactionHandleRuntimeTransactionHandle
Attributes
Implements

Constructors

RuntimeTransactionHandle() RuntimeTransactionHandle() RuntimeTransactionHandle() RuntimeTransactionHandle()

Initializes a new instance of the RuntimeTransactionHandle class.

RuntimeTransactionHandle(Transaction) RuntimeTransactionHandle(Transaction) RuntimeTransactionHandle(Transaction) RuntimeTransactionHandle(Transaction)

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

Properties

AbortInstanceOnTransactionFailure AbortInstanceOnTransactionFailure AbortInstanceOnTransactionFailure AbortInstanceOnTransactionFailure

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

ExecutionPropertyName ExecutionPropertyName ExecutionPropertyName ExecutionPropertyName

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

(Inherited from Handle)
Owner Owner Owner Owner

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

(Inherited from Handle)
SuppressTransaction SuppressTransaction SuppressTransaction SuppressTransaction

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

Methods

CompleteTransaction(NativeActivityContext) CompleteTransaction(NativeActivityContext) CompleteTransaction(NativeActivityContext) CompleteTransaction(NativeActivityContext)

Completes the current run-time transaction.

CompleteTransaction(NativeActivityContext, BookmarkCallback) CompleteTransaction(NativeActivityContext, BookmarkCallback) CompleteTransaction(NativeActivityContext, BookmarkCallback) CompleteTransaction(NativeActivityContext, BookmarkCallback)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetCurrentTransaction(AsyncCodeActivityContext) GetCurrentTransaction(AsyncCodeActivityContext) GetCurrentTransaction(AsyncCodeActivityContext) GetCurrentTransaction(AsyncCodeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(CodeActivityContext) GetCurrentTransaction(CodeActivityContext) GetCurrentTransaction(CodeActivityContext) GetCurrentTransaction(CodeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(NativeActivityContext) GetCurrentTransaction(NativeActivityContext) GetCurrentTransaction(NativeActivityContext) GetCurrentTransaction(NativeActivityContext)

Returns a reference to the current run-time transaction.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnInitialize(HandleInitializationContext) OnInitialize(HandleInitializationContext) OnInitialize(HandleInitializationContext) OnInitialize(HandleInitializationContext)

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

(Inherited from Handle)
OnUninitialize(HandleInitializationContext) OnUninitialize(HandleInitializationContext) OnUninitialize(HandleInitializationContext) 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) RequestTransactionContext(NativeActivityContext, Action<NativeActivityTransactionContext,Object>, Object) RequestTransactionContext(NativeActivityContext, Action<NativeActivityTransactionContext,Object>, Object) RequestTransactionContext(NativeActivityContext, Action<NativeActivityTransactionContext,Object>, Object)

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

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

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

ThrowIfUninitialized() ThrowIfUninitialized() ThrowIfUninitialized() ThrowIfUninitialized()

Throws an InvalidOperationException if the Handle has not been initialized.

(Inherited from Handle)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IExecutionProperty.CleanupWorkflowThread() IExecutionProperty.CleanupWorkflowThread() IExecutionProperty.CleanupWorkflowThread() IExecutionProperty.CleanupWorkflowThread()

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

IExecutionProperty.SetupWorkflowThread() IExecutionProperty.SetupWorkflowThread() IExecutionProperty.SetupWorkflowThread() IExecutionProperty.SetupWorkflowThread()

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

IPropertyRegistrationCallback.Register(RegistrationContext) IPropertyRegistrationCallback.Register(RegistrationContext) IPropertyRegistrationCallback.Register(RegistrationContext) IPropertyRegistrationCallback.Register(RegistrationContext)

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

IPropertyRegistrationCallback.Unregister(RegistrationContext) IPropertyRegistrationCallback.Unregister(RegistrationContext) IPropertyRegistrationCallback.Unregister(RegistrationContext) IPropertyRegistrationCallback.Unregister(RegistrationContext)

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

Applies to