傳回 DbSyncTableDescription 物件,其中包含 SQL Server 資料庫中指定之資料表的相關結構描述資訊。
命名空間: Microsoft.Synchronization.Data.SqlServer
組件: Microsoft.Synchronization.Data.SqlServer (在 microsoft.synchronization.data.sqlserver.dll)
語法
'宣告
Public Shared Function GetDescriptionForTable ( _
tableName As String, _
columnNames As Collection(Of String), _
connection As SqlConnection _
) As DbSyncTableDescription
'用途
Dim tableName As String
Dim columnNames As Collection(Of String)
Dim connection As SqlConnection
Dim returnValue As DbSyncTableDescription
returnValue = SqlSyncDescriptionBuilder.GetDescriptionForTable(tableName, columnNames, connection)
public static DbSyncTableDescription GetDescriptionForTable (
string tableName,
Collection<string> columnNames,
SqlConnection connection
)
public:
static DbSyncTableDescription^ GetDescriptionForTable (
String^ tableName,
Collection<String^>^ columnNames,
SqlConnection^ connection
)
public static DbSyncTableDescription GetDescriptionForTable (
String tableName,
Collection<String> columnNames,
SqlConnection connection
)
public static function GetDescriptionForTable (
tableName : String,
columnNames : Collection<String>,
connection : SqlConnection
) : DbSyncTableDescription
參數
- tableName
要擷取描述的資料表名稱。
- columnNames
要擷取資訊的資料行清單。
- connection
包含資料庫之連接的 SqlCeConnection 物件。
傳回值
DbSyncTableDescription 物件,其中包含指定之資料表的相關結構描述資訊。
請參閱
參考
SqlSyncDescriptionBuilder 類別
SqlSyncDescriptionBuilder 成員
Microsoft.Synchronization.Data.SqlServer 命名空間