Share via


RelationalSyncProvider.BeginSession Method

Called by the SyncOrchestrator to indicate that a synchronization session has started.

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

Syntax

'Declaration
Public Overrides Sub BeginSession ( _
    position As SyncProviderPosition, _
    syncSessionContext As SyncSessionContext _
)
'Usage
Dim instance As RelationalSyncProvider
Dim position As SyncProviderPosition
Dim syncSessionContext As SyncSessionContext

instance.BeginSession(position, syncSessionContext)
public override void BeginSession(
    SyncProviderPosition position,
    SyncSessionContext syncSessionContext
)
public:
virtual void BeginSession(
    SyncProviderPosition position, 
    SyncSessionContext^ syncSessionContext
) override
abstract BeginSession : 
        position:SyncProviderPosition * 
        syncSessionContext:SyncSessionContext -> unit 
override BeginSession : 
        position:SyncProviderPosition * 
        syncSessionContext:SyncSessionContext -> unit 
public override function BeginSession(
    position : SyncProviderPosition, 
    syncSessionContext : SyncSessionContext
)

Parameters

Exceptions

Exception Condition
DbSyncException

A synchronization is already in progress.

See Also

Reference

RelationalSyncProvider Class

Microsoft.Synchronization.Data Namespace