TransactionOptions Structure

 
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.

Contains additional information that specifies transaction behaviors.

Namespace:   System.Transactions
Assembly:  System.Transactions (in System.Transactions.dll)

public struct TransactionOptions

NameDescription
System_CAPS_pubpropertyIsolationLevel

Gets or sets the isolation level of the transaction.

System_CAPS_pubpropertyTimeout

Gets or sets the timeout period for the transaction.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether this TransactionOptions instance and the specified object are equal.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(TransactionOptions, TransactionOptions)

Tests whether two specified TransactionOptions instances are equivalent.

System_CAPS_puboperatorSystem_CAPS_staticInequality(TransactionOptions, TransactionOptions)

Returns a value that indicates whether two TransactionOptions instances are not equal.

This structure encapsulates the timeout and isolation level parameters for a transaction into a single, simple structure. It is passed to the TransactionScope and CommittableTransaction constructors to create a new transaction with the desired behaviors.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: