OleDbConnection.State Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’état actuel de la connexion.
public:
property System::Data::ConnectionState State { System::Data::ConnectionState get(); };
public:
virtual property System::Data::ConnectionState State { System::Data::ConnectionState 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; }
[<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 ReadOnly Property State As ConnectionState
Public Overrides ReadOnly Property State As ConnectionState
Valeur de propriété
Combinaison au niveau du bit des ConnectionState valeurs. La valeur par défaut est Fermée.
Implémente
- Attributs
Remarques
Voici les modifications d’état autorisées :
- De
Closedà , àOpenl’aide de la Open méthode de l’objet OleDbConnection . - À partir
Closedde , à l’aide deOpenla Close méthode ou de la méthode Dispose de l’objetOleDbConnection.