共用方式為


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
    包含同步處理工作階段變數的 SyncSession 物件,例如正在同步處理之用戶端的 ID。

傳回值

SyncSchema 物件,此物件包含每一個指定之資料表的結構描述。

備註

此方法將會嘗試從 Schema 屬性取得結構描述。如果找不到此結構描述,而且伺服器資料庫是 SQL Server,這個方法將會嘗試從基礎資料庫直接取得結構描述。

請參閱

參考

DbServerSyncProvider 類別
DbServerSyncProvider 成員
Microsoft.Synchronization.Data.Server 命名空間