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)
Syntax
'Declaration
Public Function FillSchema ( _
dataTable As DataTable, _
connection As IDbConnection _
) As DataTable
'Usage
Dim instance As SyncAdapter
Dim dataTable As DataTable
Dim connection As IDbConnection
Dim returnValue As DataTable
returnValue = instance.FillSchema(dataTable, _
connection)
public DataTable FillSchema(
DataTable dataTable,
IDbConnection connection
)
public:
DataTable^ FillSchema(
DataTable^ dataTable,
IDbConnection^ connection
)
member FillSchema :
dataTable:DataTable *
connection:IDbConnection -> DataTable
public function FillSchema(
dataTable : DataTable,
connection : IDbConnection
) : DataTable
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | connection is a null reference (Nothing in Visual Basic). |
SchemaException | SelectIncrementalInsertsCommand or SelectIncrementalUpdatesCommand is a null reference (Nothing in Visual Basic), or the schema could not be retrieved. |