This documentation is archived and is not being maintained.
ContextUtil.Transaction Property
.NET Framework 1.1
Gets an object describing the current COM+ DTC transaction.
[Visual Basic] Public Shared ReadOnly Property Transaction As Object [C#] public static object Transaction {get;} [C++] public: __property static Object* get_Transaction(); [JScript] public static function get Transaction() : Object;
Property Value
An object representing the current transaction.
Exceptions
| Exception Type | Condition |
|---|---|
| COMException | There is no COM+ context available. |
| PlatformNotSupportedException | The platform is not Windows 2000 or later. |
Remarks
The returned object supports the ITransaction interface if the transaction is a COM+ DTC transaction.
This property is available only on Windows 2000 or later. On other platforms it throws a PlatformNotSupportedException.
Requirements
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
ContextUtil Class | ContextUtil Members | System.EnterpriseServices Namespace
Show: