CommittableTransaction Constructor (TransactionOptions)

 

Initializes a new instance of the CommittableTransaction class with the specified transaction options.

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

public:
CommittableTransaction(
	TransactionOptions options
)

Parameters

options
Type: System.Transactions::TransactionOptions

A TransactionOptions structure that describes the transaction options to use for the new transaction.

Exception Condition
PlatformNotSupportedException

An attempt to create a transaction under Windows 98, Windows 98 Second Edition or Windows Millennium Edition.

ArgumentException

options is invalid.

The following sample creates a new instance of CommittableTransaction with options, and aborts it.

.NET Framework
Available since 2.0
Return to top
Show: