Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the IDbConnection object that is used to connect to the client database.
This property is not CLS-compliant.
Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in microsoft.synchronization.data.sqlserverce.dll)
Syntax
'Declaration
Public Overrides Property Connection As IDbConnection
'Usage
Dim instance As SqlCeSyncProvider
Dim value As IDbConnection
value = instance.Connection
instance.Connection = value
public override IDbConnection Connection { get; set; }
public:
virtual property IDbConnection^ Connection {
IDbConnection^ get () override;
void set (IDbConnection^ value) override;
}
/** @property */
public IDbConnection get_Connection ()
/** @property */
public void set_Connection (IDbConnection value)
public override function get Connection () : IDbConnection
public override function set Connection (value : IDbConnection)
Property Value
The IDbConnection object that is used to connect to the client database.
Remarks
When setting this property, it is recommended to pass a connection object that has never been opened. Sync Framework clones the connection object that you pass; passing a previously opened connection can result in some properties, such as the database password, not being set correctly.
See Also
Reference
SqlCeSyncProvider Class
SqlCeSyncProvider Members
Microsoft.Synchronization.Data.SqlServerCe Namespace