اقرأ باللغة الإنجليزية تحرير

مشاركة عبر


RuntimeTransactionHandle Class

Definition

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

C#
[System.Runtime.Serialization.DataContract]
public sealed class RuntimeTransactionHandle : System.Activities.Handle, System.Activities.IExecutionProperty, System.Activities.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, BookmarkCallback)

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

CompleteTransaction(NativeActivityContext)

Completes the current run-time transaction.

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

Applies to

منتج الإصدارات
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1