Redigera

Dela via


EntityConnection.State Property

Definition

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.ConnectionState
Public Overrides ReadOnly Property State As ConnectionState

Property 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.

Applies to