SqlDataReader.Connection 属性

定义

获取与 SqlConnection 关联的 SqlDataReaderGets the SqlConnection associated with the SqlDataReader.

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

属性值

SqlConnection

SqlConnection 关联的 SqlDataReaderThe SqlConnection associated with the SqlDataReader.

适用于