Share via


DbServerSyncProvider.GetServerInfo 方法

当给定会话参数时获取一个 SyncServerInfo 对象。

命名空间: Microsoft.Synchronization.Data.Server
程序集: Microsoft.Synchronization.Data.Server(在 microsoft.synchronization.data.server.dll 中)

语法

声明
Public Overrides Function GetServerInfo ( _
    syncSession As SyncSession _
) As SyncServerInfo
用法
Dim instance As DbServerSyncProvider
Dim syncSession As SyncSession
Dim returnValue As SyncServerInfo

returnValue = instance.GetServerInfo(syncSession)
public override SyncServerInfo GetServerInfo (
    SyncSession syncSession
)
public:
virtual SyncServerInfo GetServerInfo (
    SyncSession^ syncSession
) override
public SyncServerInfo GetServerInfo (
    SyncSession syncSession
)
public override function GetServerInfo (
    syncSession : SyncSession
) : SyncServerInfo

参数

  • syncSession
    包含同步会话变量(如要同步的客户端的 ID)的 SyncSession 对象。

返回值

包含服务器同步信息的 SyncServerInfo 对象。

请参阅

参考

DbServerSyncProvider 类
DbServerSyncProvider 成员
Microsoft.Synchronization.Data.Server 命名空间