SqlConnection.State Propriedade

Definição

Indica o estado do SqlConnection durante a operação de rede mais recente realizada na conexão.Indicates the state of the SqlConnection during the most recent network operation performed on the connection.

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

Valor da propriedade

ConnectionState

Uma enumeração ConnectionState.An ConnectionState enumeration.

Implementações

Atributos

Comentários

Retorna uma ConnectionState enumeração que indica o estado do SqlConnection .Returns an ConnectionState enumeration indicating the state of the SqlConnection. Fechar e reabrir a conexão atualizará o valor de State .Closing and reopening the connection will refresh the value of State.

Aplica-se a