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
- position
Type: Microsoft.Synchronization.SyncProviderPosition
The position of this provider, relative to the other provider in the session.
- syncSessionContext
Type: Microsoft.Synchronization.SyncSessionContext
The current status of the corresponding session.
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.