Send feedback on this topic.
Teradata.Client.Provider
Connection Property (TdTransaction)



Teradata.Client.Provider Namespace > TdTransaction Class : Connection Property
Gets the TdConnection object associated with this transaction.
Syntax
'Declaration
 
Public Shadows ReadOnly Property Connection As TdConnection
'Usage
 
Dim instance As TdTransaction
Dim value As TdConnection
 
value = instance.Connection
public new TdConnection Connection {get;}
public:
new property TdConnection^ Connection {
   TdConnection^ get();
}

Property Value

The TdConnection object associated with this transaction or a Null reference.
Remarks
Connection property returns the active TdConnection associated with this transaction. After a call to the TdTransaction.Rollback or TdTransaction.Commit methods, the transaction is no longer associated with a TdConnection object and Connection returns a Null reference.
Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTransaction Class
TdTransaction Members