SyncTableCollection::Add Method (String, TableCreationOption, SyncDirection, SyncGroup)

Adds a SyncTable object with the specified table name, creation option, synchronization direction, and synchronization group to the end of the collection.

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

public:
SyncTable^ Add(
	String^ tableName, 
	TableCreationOption creationOption, 
	SyncDirection direction, 
	SyncGroup^ syncGroup
)

Parameters

tableName
Type: System::String
The name of the SyncTable object to add to the SyncTableCollection.
creationOption
Type: Microsoft.Synchronization.Data::TableCreationOption
A TableCreationOption enumeration value, which defines how table schemas are created in the client database.
direction
Type: Microsoft.Synchronization.Data::SyncDirection
A SyncDirection enumeration value, which defines the direction of synchronization from the perspective of the client.
syncGroup
Type: Microsoft.Synchronization.Data::SyncGroup
A SyncGroup object, which is used to group changes when they are applied.

Return Value

Type: Microsoft.Synchronization.Data::SyncTable
A SyncTable object for the specified table name.
Show: