Partilhar via


ConnectionManager.SqlConnectionObject Property

Definition

Returns a reference to the SqlConnection object used by the ConnectionContext object. This should always return the valid sqlConnection object with the latest valid ConnectionString set. Exceptions: 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

Property Value

Applies to