RelationalSyncProvider.Connection Property
Gets or sets an IDbConnection object that is used to connect to the database.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Overridable Property Connection As IDbConnection
Get
Set
'Usage
Dim instance As RelationalSyncProvider
Dim value As IDbConnection
value = instance.Connection
instance.Connection = value
public virtual IDbConnection Connection { get; set; }
public:
virtual property IDbConnection^ Connection {
IDbConnection^ get ();
void set (IDbConnection^ value);
}
abstract Connection : IDbConnection with get, set
override Connection : IDbConnection with get, set
function get Connection () : IDbConnection
function set Connection (value : IDbConnection)
Property Value
Type: System.Data.IDbConnection
An IDbConnection object that is used to connect to the database.
Exceptions
Exception | Condition |
---|---|
DbSyncException | value is not valid. |