IDataConnection Interface

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)

Syntax

'Declaration
Public Interface IDataConnection _
    Inherits IDisposable
'Usage
Dim instance As IDataConnection
public interface IDataConnection : IDisposable
public interface class IDataConnection : IDisposable
type IDataConnection =  
    interface
        interface IDisposable
    end
public interface IDataConnection extends IDisposable

The IDataConnection type exposes the following members.

Properties

  Name Description
Public property ConnectionString Gets the connection string for the data connection.
Public property Database Gets the name of the database.
Public property InternalConnection Gets the internal connection (the ADO.NET provider independent connection instance) for the connection.

Top

Methods

  Name Description
Public method CloseConnection Closes the connection of the database if the connection is not already closed.
Public method Connect Opens the connection to the database.
Public method Dispose (inherited from IDisposable)
Public method InstantiateDataAdapter Instantiates a new database data adapter instance.

Top

See Also

Reference

Microsoft.SqlServerCe.Management.Scripting Namespace