SyncAdapter::FillSchema Method

Populates the schema information for the table that is specified in TableName.

Namespace:  Microsoft.Synchronization.Data.Server
Assembly:  Microsoft.Synchronization.Data.Server (in Microsoft.Synchronization.Data.Server.dll)

public:
DataTable^ FillSchema(
	DataTable^ dataTable, 
	IDbConnection^ connection
)

Parameters

dataTable
Type: System.Data::DataTable
The DataTable to be populated with schema information.
connection
Type: System.Data::IDbConnection
An IDbConnection object that is used to connect to the server database.

Return Value

Type: System.Data::DataTable
A DataTable that contains the schema information.

ExceptionCondition
ArgumentNullException

connection is a nullptr.

SchemaException

SelectIncrementalInsertsCommand or SelectIncrementalUpdatesCommand is a nullptr, or the schema could not be retrieved.

Show: