SqlTransaction.Connection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the SqlConnection object associated with the transaction, or null
if the transaction is no longer valid.
public:
property System::Data::SqlClient::SqlConnection ^ Connection { System::Data::SqlClient::SqlConnection ^ get(); };
public System.Data.SqlClient.SqlConnection Connection { get; }
member this.Connection : System.Data.SqlClient.SqlConnection
Public ReadOnly Property Connection As SqlConnection
Property Value
The SqlConnection object associated with the transaction.
Remarks
A single application may have multiple database connections, each with zero or more transactions. This property lets you determine the connection object associated with a particular transaction created by BeginTransaction.
Applies to
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za