Share via


UnmanagedSyncProviderWrapper.BeginSession Method

Notifies the unmanaged provider that it is joining a synchronization session.

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

Syntax

'Declaration
Public Overrides Sub BeginSession ( _
    position As SyncProviderPosition, _
    syncSessionContext As SyncSessionContext _
)
'Usage
Dim instance As UnmanagedSyncProviderWrapper
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
InvalidOperationException

This UnmanagedSyncProviderWrapper object is not initialized.

ArgumentNullException

syncSessionContext is a null reference (Nothing in Visual Basic).

Remarks

This method wraps the unmanaged IKnowledgeSyncProvider::BeginSession method.

See Also

Reference

UnmanagedSyncProviderWrapper Class

Microsoft.Synchronization Namespace