SqlSyncDescriptionBuilder::GetDescriptionForTable Method (String, SqlConnection)
Returns a DbSyncTableDescription object that contains schema information about the specified table in a SQL Server database.
Assembly: Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)
public: static DbSyncTableDescription^ GetDescriptionForTable( String^ tableName, SqlConnection^ connection )
Parameters
- tableName
- Type: System::String
The name of the table for which to retrieve a description.
- connection
- Type: System.Data.SqlClient::SqlConnection
A SqlConnection object that contains a connection to the database.
Return Value
Type: Microsoft.Synchronization.Data::DbSyncTableDescriptionA DbSyncTableDescription object that contains schema information about the specified table.
| Exception | Condition |
|---|---|
| ArgumentNullException | connection is nullptr. |
| ArgumentException | tableName is a nullptr or empty. |
Show: