NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOConnection Members

Public:

Constructor

ADOConnection Constructor Overloaded. Initializes a new instance of the ADOConnection class.

Properties

ConnectionString Gets or sets the string used to open a data store.
ConnectionTimeout Gets or sets the time to wait while establishing a connection before terminating the attempt and generating an error.
Database Gets or sets the name of the current database or the database to be used once a connection is open.
DataSource Gets or sets the name of the database to connect to.
IsolationLevel Gets or sets the isolation level used for any transaction. Set only after the connection is open.
Password Gets or sets the password to use when connecting.
Properties Gets the initialization and authorization properties when the connection is closed. Gets the session and data source information when the connection is open.
Provider Gets the name of the provider.
Site (inherited from Component) Gets or sets the site of the Component.
State (inherited from DBConnection) Gets the current state of the connection.
UserID Gets or sets the user ID to use when connecting.

Methods

BeginTransaction Begins a database transaction with the current IsolationLevel value.
Clone Creates a clone of this insatce of ADOConnection.
Close Overloaded. Closes the connection to the data source.
CommitTransaction Commits the database transaction.
Dispose Disposes of this ADOConnection object.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetContainer (inherited from Component) Returns the IContainer that contains the Component.
GetDesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetServiceObject (inherited from Component) Returns an object representing a service provided by the Component.
GetType (inherited from Object) Gets the Type of the Object.
Open Opens a database connection with the current property settings.
ResetConnectionTimeout Resets the ConnectionTimeout property to its default.
ResetDatabase Resets the Database property to its default.
ResetDataSource Resets the DataSource property to its default.
ResetIsolationLevel Resets the IsolationLevel property to its default.
ResetPassword Resets the Password property to its default.
ResetProperties Resets the connection properties collection from the provider.
ResetUserID Resets the UserID property to its default.
RollbackTransaction Rolls back a transaction from being applied to the database.
ShouldPersistConnectionTimeout Determines whether the ConnectionTimeout should be persisted.
ShouldPersistDatabase Determines whether the Database should be persisted.
ShouldPersistDataSource Determines whether the DataSource should be persisted.
ShouldPersistIsolationLevel Determines whether the IsolationLevel should be persisted.
ShouldPersistPassword Determines whether the Password should be persisted.
ShouldPersistUserID Determines whether the UserID should be persisted.
ToString (inherited from Component) Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only.

Events

InfoMessage Occurs when an informational message is added.
StateChange (inherited from DBConnection) Occurs whenever the state of the connection changes.

Protected:

Methods

Close Overloaded. Closes the connection to the data source.
CreateNewProperties [To be supplied.]
CreateNewStateChangeEvent (inherited from DBConnection) [To be supplied.]
Finalize [To be supplied.]
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnInfoMessage Raises the ADOInfoMessageEventArgs event.
OnStateChange (inherited from DBConnection) Raises the StateChangeEventArgs event.
OpenDesignMode [To be supplied.]
SetObjectState (inherited from DBConnection) Sets the State to one of the DBObjectState values.

Fields

objectState (inherited from DBConnection) [To be supplied.]

Event Hookup:

Methods

AddOnInfoMessage Use to add an information message event handler.
AddOnStateChange (inherited from DBConnection) Use to add a connection state change event handler.
RemoveOnStateChange (inherited from DBConnection) Use to remove a connection state change event handler.

See Also

ADOConnection Class | System.Data.ADO Namespace