|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
OdbcConnection, classe
System.MarshalByRefObject
System.ComponentModel.Component
System.Data.Common.DbConnection
System.Data.Odbc.OdbcConnection
Espace de noms : System.Data.Odbc
Assembly : System.Data (dans System.Data.dll)
Le type OdbcConnection expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | OdbcConnection() | |
![]() | OdbcConnection(String) |
| Nom | Description | |
|---|---|---|
![]() | ConnectionString | |
![]() | ConnectionTimeout | |
![]() | Container | |
![]() | Database | |
![]() | DataSource | |
![]() | Driver | |
![]() | ServerVersion | |
![]() | Site | |
![]() | State |
| Nom | Description | |
|---|---|---|
![]() | BeginTransaction() | |
![]() | BeginTransaction(IsolationLevel) | |
![]() | ChangeDatabase | |
![]() | Close | |
![]() | CreateCommand | |
![]() | CreateObjRef | |
![]() | Dispose() | |
![]() | EnlistDistributedTransaction | |
![]() | EnlistTransaction | |
![]() | Equals(Object) | |
![]() | GetHashCode | |
![]() | GetLifetimeService | |
![]() | GetSchema() | |
![]() | GetSchema(String) | |
![]() | GetSchema(String, String[]) | |
![]() | GetType | |
![]() | InitializeLifetimeService | |
![]() | Open | |
![]() | OpenAsync() | |
![]() | OpenAsync(CancellationToken) | |
![]() ![]() | ReleaseObjectPool | |
![]() | ToString |
| Nom | Description | |
|---|---|---|
![]() | Disposed | |
![]() | InfoMessage | |
![]() | StateChange |
| Nom | Description | |
|---|---|---|
![]() ![]() | ICloneable.Clone | |
![]() ![]() | IDbConnection.BeginTransaction() | |
![]() ![]() | IDbConnection.BeginTransaction(IsolationLevel) | |
![]() ![]() | IDbConnection.CreateCommand |
Remarque |
|---|
static private void InsertRow(string connectionString) { string queryString = "INSERT INTO Customers (CustomerID, CompanyName) Values('NWIND', 'Northwind Traders')"; OdbcCommand command = new OdbcCommand(queryString); using (OdbcConnection connection = new OdbcConnection(connectionString)) { command.Connection = connection; connection.Open(); command.ExecuteNonQuery(); // The connection is automatically closed at // the end of the Using block. } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
