SqlCeClientSyncProvider.CreateSchema Method

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

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

See Also

Reference

SqlCeClientSyncProvider Class

Microsoft.Synchronization.Data.SqlServerCe Namespace