SystemTransaction Property

ContextUtil.SystemTransaction Property


Gets the current transaction context.

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

public static Transaction SystemTransaction { get; }

Property Value

Type: System.Transactions.Transaction

A Transaction that represents the current transaction context.

Exception Condition

There is no COM+ context available.


The platform is not Windows 2000 or later.

If no transaction context exists when this property is accessed, a new transaction context is created and returned.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft