Name | Description | |
---|---|---|
DB2Connection Constructor | Overloaded. Initializes a new instance of the DB2Connection class. |
The following tables list the members exposed by DB2Connection.
Name | Description | |
---|---|---|
DB2Connection Constructor | Overloaded. Initializes a new instance of the DB2Connection class. |
Name | Description | |
---|---|---|
ConnectionString | Overridden. Gets or sets the string used to open a DB2 connection. | |
ConnectionTimeout | Overridden. Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. | |
Container | Gets the System.ComponentModel.IContainer that contains the System.ComponentModel.Component. (Inherited from System.ComponentModel.Component) | |
Database | Gets or sets the name of the current database or the database to be used once a connection is open. | |
DataSource | Overridden. Gets or sets the name or network address of the DB2 server instance to which to connect. | |
InDistributedTransaction | Indicates whether the connection is enlisted in a distributed transaction. (Inherited from Devart.Common.DbConnectionBase) | |
LocalFailover | Determines whether a failover operation can be performed after connection breaks. | |
Name | Gets or sets the name of the component. | |
Owner | Gets or sets a form or other container that the DB2Connection instance belongs to. | |
Password | Gets or sets the user's password to connect. | |
Server | Gets or sets the host and port to connect to. For example, "db2server:5000". Port may be omitted. | |
ServerType | This property applies to UniData® and UniVerse data servers only. Indicates whether the connection is to be made to UniData or UniVerse. | |
ServerVersion | Overridden. Gets a string containing the version of the instance of DB2 to which the client is connected. | |
Site | Gets or sets the System.ComponentModel.ISite of the System.ComponentModel.Component. (Inherited from System.ComponentModel.Component) | |
State | Gets the current state of the connection. | |
UserId | Gets or sets the name of the user to connect. |
Name | Description | |
---|---|---|
BeginOpen | Starts an asynchronous invocation of an Open method. (Inherited from Devart.Common.DbConnectionBase) | |
BeginTransaction | Overloaded. Begins a transaction at the database. | |
ChangeDatabase | Overridden. Changes the current database associated with an open connection. | |
ClearAllPools | Clears all pools associated with the connection. | |
ClearPool | Clears the pool matching ConnectionString of provided DB2Connection object. | |
Clone | Creates a new object that is a copy of the current instance. | |
Close | Closes the connection to the database. This is the preferred method of closing any open connection. (Inherited from Devart.Common.DbConnectionBase) | |
CreateCommand | Creates and returns a DB2Command object associated with the DB2Connection. | |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject) | |
Dispose | Releases all resources used by the System.ComponentModel.Component. (Inherited from System.ComponentModel.Component) | |
EndOpen | Ends an asynchronous invocation of the Open method. (Inherited from Devart.Common.DbConnectionBase) | |
EnlistDistributedTransaction | Enlists in the specified transaction as a distributed transaction. | |
EnlistTransaction | Overridden. Enlists in the specified transaction. | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) | |
GetSchema | Overloaded. Returns list of metadata collections and number of restrictions for a collection. (Inherited from Devart.Common.DbConnectionBase) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) | |
Open | Overridden. Opens a DB2 connection with the property settings specified by the ConnectionString. | |
ToString | Returns a System.String containing the name of the System.ComponentModel.Component, if any. This method should not be overridden. (Inherited from System.ComponentModel.Component) |
Name | Description | |
---|---|---|
ConnectionLost | Occurs when connection to the data source is lost in case LocalFailover is set to true. You may use this event to implicitly reconnect and reexecute the current operation. | |
Disposed | Occurs when the component is disposed by a call to the System.ComponentModel.Component.Dispose method. (Inherited from System.ComponentModel.Component) | |
Error | Occurs when DB2 returns an error. | |
InfoMessage | Occurs when DB2 returns a warning or informational message. | |
StateChange | Occurs when the state of the connection changes. (Inherited from Devart.Common.DbConnectionBase) | |
TransactionStateChanged | Occurs when the state of the transaction is changed. (Inherited from Devart.Common.DbConnectionBase) | |
TransactionStateChanging | Occurs when the state of the transaction is changing. (Inherited from Devart.Common.DbConnectionBase) |