Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IDataConnection Interface

IDataConnection Interface

Visual Studio 2010

Defines properties and methods that represent the data connection.

Namespace:  Microsoft.SqlServerCe.Management.Scripting
Assembly:  Microsoft.SqlServerCe.Management.Scripting (in Microsoft.SqlServerCe.Management.Scripting.dll)

public interface IDataConnection : IDisposable

The IDataConnection type exposes the following members.

Public propertyConnectionStringGets the connection string for the data connection.
Public propertyDatabaseGets the name of the database.
Public propertyInternalConnectionGets the internal connection (the ADO.NET provider independent connection instance) for the connection.

Public methodCloseConnectionCloses the connection of the database if the connection is not already closed.
Public methodConnectOpens the connection to the database.
Public methodDispose (inherited from IDisposable)
Public methodInstantiateDataAdapterInstantiates a new database data adapter instance.
© 2015 Microsoft