ConnectionManager.SqlConnectionObject 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回对 ConnectionContext 对象使用的 SqlConnection 对象的引用。 这应始终返回具有最新有效 ConnectionString 集的有效 sqlConnection 对象。 异常:PropertyNotAvailableException
public System.Data.SqlClient.SqlConnection SqlConnectionObject { get; }
public Microsoft.Data.SqlClient.SqlConnection SqlConnectionObject { get; }
member this.SqlConnectionObject : System.Data.SqlClient.SqlConnection
member this.SqlConnectionObject : Microsoft.Data.SqlClient.SqlConnection
Public ReadOnly Property SqlConnectionObject As SqlConnection