Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates the table schema in the client database if the schema does not exist.
Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Sub CreateSchema ( _
syncTable As SyncTable, _
syncSchema As SyncSchema _
)
'Usage
Dim instance As SqlCeClientSyncProvider
Dim syncTable As SyncTable
Dim syncSchema As SyncSchema
instance.CreateSchema(syncTable, syncSchema)
public override void CreateSchema(
SyncTable syncTable,
SyncSchema syncSchema
)
public:
virtual void CreateSchema(
SyncTable^ syncTable,
SyncSchema^ syncSchema
) override
abstract CreateSchema :
syncTable:SyncTable *
syncSchema:SyncSchema -> unit
override CreateSchema :
syncTable:SyncTable *
syncSchema:SyncSchema -> unit
public override function CreateSchema(
syncTable : SyncTable,
syncSchema : SyncSchema
)
Parameters
- syncTable
Type: Microsoft.Synchronization.Data.SyncTable
A SyncTable object that contains settings for the table that will be created, such as the direction of synchronization.
- syncSchema
Type: Microsoft.Synchronization.Data.SyncSchema
A SyncSchema object. This object is a DataSet that contains schema information for the table that will be created.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | syncTable is a null reference (Nothing in Visual Basic) or syncSchema is a null reference (Nothing in Visual Basic) and syncTable.CreationOption is not UseExistingTableOrFail. |
| DataSyncException | Another transaction is in progress. |
| SchemaException |
|