Share via


SqlSyncAdapterBuilder.Connection Property

Gets or sets the connection to the server database.

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

Syntax

'Declaration
Public Property Connection As SqlConnection
    Get
    Set
'Usage
Dim instance As SqlSyncAdapterBuilder
Dim value As SqlConnection

value = instance.Connection

instance.Connection = value
public SqlConnection Connection { get; set; }
public:
property SqlConnection^ Connection {
    SqlConnection^ get ();
    void set (SqlConnection^ value);
}
member Connection : SqlConnection with get, set
function get Connection () : SqlConnection
function set Connection (value : SqlConnection)

Property Value

Type: System.Data.SqlClient.SqlConnection
A SqlConnection object that is used to connect to the server database.

Examples

For a code example, see SqlSyncAdapterBuilder.

See Also

Reference

SqlSyncAdapterBuilder Class

Microsoft.Synchronization.Data.Server Namespace