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.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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.