EntityConnection.State Property  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the ConnectionState property of the underlying provider if the EntityConnection is open. Otherwise, returns Closed.
public:
 virtual property System::Data::ConnectionState State { System::Data::ConnectionState get(); };public override System.Data.ConnectionState State { get; }member this.State : System.Data.ConnectionStatePublic Overrides ReadOnly Property State As ConnectionStateProperty Value
Open, if and only if both the EntityConnection's internal state and the underlying provider's ConnectionState are open. If the EntityConnection's state is open but the provider's ConnectionState is closed, this property returns Broken. Otherwise, it returns Closed.