dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2Transaction Class / Connection Property

In This Topic
    Connection Property (DB2Transaction)
    In This Topic
    Gets the DB2Connection object associated with the transaction, or a null reference (Nothing in Visual Basic) if the transaction is no longer valid.
    Syntax
    'Declaration
     
    Public Shadows ReadOnly Property Connection As DB2Connection
    public new DB2Connection Connection {get;}

    Property Value

    The DB2Connection object associated with the transaction.
    Remarks
    A single application may have multiple database connections, and each connection may have a transaction. This property enables you to determine the DB2Connection object associated with a particular transaction created by BeginTransaction().
    See Also