EntityConnection.State プロパティ

定義

ConnectionStateが開いている場合は、基になるプロバイダーのEntityConnection プロパティを取得します。 それ以外の場合、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

プロパティ値

OpenEntityConnectionの内部状態と基になるプロバイダーの ConnectionState の両方が開いている場合にのみ。 EntityConnectionの状態が開いているが、プロバイダーのConnectionStateが閉じている場合、このプロパティはBrokenを返します。 それ以外の場合は Closedを返します。

適用対象