Share via


DbServerSyncProvider.GetSchema 方法

返回一个 SyncSchema 对象,其中包含每个指定表的架构。

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

语法

声明
Public Overrides Function GetSchema ( _
    tableNames As Collection(Of String), _
    syncSession As SyncSession _
) As SyncSchema
用法
Dim instance As DbServerSyncProvider
Dim tableNames As Collection(Of String)
Dim syncSession As SyncSession
Dim returnValue As SyncSchema

returnValue = instance.GetSchema(tableNames, syncSession)
public override SyncSchema GetSchema (
    Collection<string> tableNames,
    SyncSession syncSession
)
public:
virtual SyncSchema^ GetSchema (
    Collection<String^>^ tableNames, 
    SyncSession^ syncSession
) override
public SyncSchema GetSchema (
    Collection<String> tableNames, 
    SyncSession syncSession
)
public override function GetSchema (
    tableNames : Collection<String>, 
    syncSession : SyncSession
) : SyncSchema

参数

  • tableNames
    服务器提供程序应获取其架构的表的名称集合。
  • syncSession
    包含同步会话变量(如要同步的客户端的 ID)的 SyncSession 对象。

返回值

一个 SyncSchema 对象,其中包含每个指定表的架构。

备注

此方法将尝试从 Schema 属性获取架构。如果找不到架构且服务器数据库为 SQL Server,则此方法将尝试直接从基础数据库获取架构。

请参阅

参考

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