Bagikan melalui


SqlConnection.State Properti

Definisi

Menunjukkan status SqlConnection selama operasi jaringan terbaru yang dilakukan pada koneksi.

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

Nilai Properti

Enumerasi ConnectionState .

Penerapan

Atribut

Keterangan

Mengembalikan enumerasi yang ConnectionState menunjukkan status SqlConnection. Menutup dan membuka kembali koneksi akan me-refresh nilai State.

Berlaku untuk

Lihat juga