SqlSyncDescriptionBuilder.GetDescriptionForTable 方法 (String, 泛型 Collection, SqlConnection)
返回一个 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 命名空间