ConnectionManager.SqlConnectionObject 属性

定义

返回对 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

属性值

适用于