ConnectionManager.SqlConnectionObject 屬性

定義

回傳 ConnectionContext 物件所使用的 SqlConnection 物件的參考。 這應該總是回傳有效的 sqlConnection 物件,且 ConnectionString 設定為最新有效。 例外: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

屬性值

適用於