Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
/** @property */ public SqlCeConnection get_Connection () /** @property */ public void set_Connection (SqlCeConnection value)
public function get Connection () : SqlCeConnection public function set Connection (value : SqlCeConnection)
Property ValueThe connection to a data source. The default value is a null reference (Nothing in Visual Basic).
The Connection property was changed while a transaction was in progress.
SQL Server Mobile supports multiple simultaneous connections as well as multiple commands sharing the same connection. Thus, it is possible to have multiple instances of SqlCeDataReader open on the same connection. This behavior differs from that of System.Data.SqlClient.
If you set Connection while a transaction is in progress and the Transaction property is not a null reference (Nothing in Visual Basic), an InvalidOperationException is generated. If the Transaction property is not a null reference (Nothing in Visual Basic) and the transaction has already been committed or rolled back, Transaction is set to a null reference (Nothing in Visual Basic).
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.