Export (0) Print
Expand All

SqlCeSyncProvider.Connection Property

Gets or sets the IDbConnection object that is used to connect to the client database.

Namespace:  Microsoft.Synchronization.Data.SqlServerCe
Assembly:  Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)

public override IDbConnection Connection { get; set; }

Property Value

Type: System.Data.IDbConnection
The IDbConnection object that is used to connect to the client database.

ExceptionCondition
ArgumentException

value has an invalid connection string.

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.

Show:
© 2014 Microsoft