共用方式為


DbConnection.State 屬性

定義

取得字串,描述連接的狀態。

public:
 abstract property System::Data::ConnectionState State { System::Data::ConnectionState get(); };
public abstract System.Data.ConnectionState State { get; }
[System.ComponentModel.Browsable(false)]
public abstract System.Data.ConnectionState State { get; }
member this.State : System.Data.ConnectionState
[<System.ComponentModel.Browsable(false)>]
member this.State : System.Data.ConnectionState
Public MustOverride ReadOnly Property State As ConnectionState

屬性值

連接的狀態。 傳回的字串格式取決於您所使用的連接特定型別。

實作

屬性

適用於

另請參閱