Export (0) Print
Expand All

SqlCeConnection.EnlistTransaction Method (Transaction)

Enlists in the specified Transaction.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
public virtual void EnlistTransaction(
	Transaction SysTrans
)

Parameters

SysTrans
Type: System.Transactions.Transaction
The transaction in which you want to enlist

ExceptionCondition
InvalidOperationException

The connection is already enlisted in a local transaction.

-or-

The connection could not be enlisted in the transaction.

NullReferenceException

SysTrans is null.

Show:
© 2015 Microsoft