Edit

Share via


TransactionManager Class

Definition

Contains methods used for transaction management. This class cannot be inherited.

C#
public static class TransactionManager
Inheritance
TransactionManager

Remarks

This class contains static properties and methods used to obtain information about the default transaction options. It also contains several static methods used for recovery of a durable resource when the durable resource fails. No special action is required of a durable resource if the Microsoft Distributed Transaction Coordinator (MSDTC) fails.

Properties

DefaultTimeout

Gets the default timeout interval for new transactions.

HostCurrentCallback

Gets or sets a custom transaction factory.

ImplicitDistributedTransactions

Gets or sets a value that indicates whether usage of System.Transactions APIs that require escalation to a distributed transaction will do so.

MaximumTimeout

Gets the default maximum timeout interval for new transactions.

Methods

RecoveryComplete(Guid)

Notifies the transaction manager that a resource manager recovering from failure has finished reenlisting in all unresolved transactions.

Reenlist(Guid, Byte[], IEnlistmentNotification)

Reenlists a durable participant in a transaction.

Events

DistributedTransactionStarted

Indicates that a distributed transaction has started.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1

See also