次の方法で共有


SqlConnection.State プロパティ

定義

接続で実行された最も新しいネットワーク操作時の SqlConnection の状態を示します。

public:
 virtual property System::Data::ConnectionState State { System::Data::ConnectionState get(); };
public:
 property System::Data::ConnectionState State { System::Data::ConnectionState get(); };
public override System.Data.ConnectionState State { get; }
[System.ComponentModel.Browsable(false)]
[System.Data.DataSysDescription("DbConnection_State")]
public System.Data.ConnectionState State { get; }
[System.ComponentModel.Browsable(false)]
public override System.Data.ConnectionState State { get; }
member this.State : System.Data.ConnectionState
[<System.ComponentModel.Browsable(false)>]
[<System.Data.DataSysDescription("DbConnection_State")>]
member this.State : System.Data.ConnectionState
[<System.ComponentModel.Browsable(false)>]
member this.State : System.Data.ConnectionState
Public Overrides ReadOnly Property State As ConnectionState
Public ReadOnly Property State As ConnectionState

プロパティ値

ConnectionState 列挙体です。

実装

属性

注釈

の状態を ConnectionState 示す列挙体を SqlConnection返します。 接続を閉じてから再度開くと、 の State値が更新されます。

適用対象

こちらもご覧ください