SyncSchemaTables.Add Method
Adds a SyncSchemaTable object with the specified table name to the end of the collection.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Function Add ( _
name As String _
) As SyncSchemaTable
'Usage
Dim instance As SyncSchemaTables
Dim name As String
Dim returnValue As SyncSchemaTable
returnValue = instance.Add(name)
public SyncSchemaTable Add(
string name
)
public:
SyncSchemaTable^ Add(
String^ name
)
member Add :
name:string -> SyncSchemaTable
public function Add(
name : String
) : SyncSchemaTable
Parameters
- name
Type: System.String
The name of the SyncSchemaTable object to add to the SyncSchemaTables collection.
Return Value
Type: Microsoft.Synchronization.Data.SyncSchemaTable
The SyncSchemaTable object that was added to the collection.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | name is a null reference (Nothing in Visual Basic). |
DuplicateNameException | name is the same as another table name in this SyncSchemaTables object. |