SyncTableCollection.Add Method (String, TableCreationOption)
Adds a SyncTable object with the specified table name and creation option to the end of the collection.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Function Add ( _
tableName As String, _
creationOption As TableCreationOption _
) As SyncTable
'Usage
Dim instance As SyncTableCollection
Dim tableName As String
Dim creationOption As TableCreationOption
Dim returnValue As SyncTable
returnValue = instance.Add(tableName, _
creationOption)
public SyncTable Add(
string tableName,
TableCreationOption creationOption
)
public:
SyncTable^ Add(
String^ tableName,
TableCreationOption creationOption
)
member Add :
tableName:string *
creationOption:TableCreationOption -> SyncTable
public function Add(
tableName : String,
creationOption : TableCreationOption
) : SyncTable
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.
Return Value
Type: Microsoft.Synchronization.Data.SyncTable
A SyncTable object for the specified table name.