Uredi

Deli z drugimi prek


TransactionManager Class

Definition

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

public ref class TransactionManager abstract sealed
public static class TransactionManager
type TransactionManager = class
Public 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

See also