ContextUtil::Transaction Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an object describing the current COM+ DTC transaction.

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

public:
property Object^ Transaction {
	static Object^ get();
}

Property Value

Type: System::Object^

An object that represents the current transaction.

Exception Condition
COMException

There is no COM+ context available.

PlatformNotSupportedException

The platform is not Windows 2000 or later.

The returned object supports the ITransaction interface if the transaction is a COM+ DTC transaction.

.NET Framework
Available since 1.1
Return to top
Show: