Export (0) Print
Expand All

SqlDataReader.Connection Property

Gets the SqlConnection associated with the SqlDataReader.

Namespace:  System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

'Declaration
Protected ReadOnly Property Connection As SqlConnection

Property Value

Type: System.Data.SqlClient.SqlConnection
The SqlConnection associated with the SqlDataReader.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft