SqlDataReader.Connection Property

Definition

Gets the SqlConnection associated with the SqlDataReader.

protected:
 property Microsoft::Data::SqlClient::SqlConnection ^ Connection { Microsoft::Data::SqlClient::SqlConnection ^ get(); };
protected Microsoft.Data.SqlClient.SqlConnection Connection { get; }
member this.Connection : Microsoft.Data.SqlClient.SqlConnection
Protected ReadOnly Property Connection As SqlConnection

Property Value

The SqlConnection associated with the SqlDataReader.

Applies to