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
COMException

There is no COM+ context available.

PlatformNotSupportedException

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
Show:
© 2016 Microsoft