BeginSession 方法

SyncOrchestrator 调用以指示同步会话已启动。

命名空间:  Microsoft.Synchronization.Data
程序集:  Microsoft.Synchronization.Data(在 Microsoft.Synchronization.Data.dll 中)

语法

声明
Public Overrides Sub BeginSession ( _
    position As SyncProviderPosition, _
    syncSessionContext As SyncSessionContext _
)
用法
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
)

参数

异常

异常 条件
DbSyncException

同步已在进行。

请参阅

参考

RelationalSyncProvider类

RelationalSyncProvider 成员

Microsoft.Synchronization.Data 命名空间