SyncTableCollection.InsertItem Method

Inserts a SyncTable object into the collection at the specified index.

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

Syntax

'Declaration
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As SyncTable _
)
'Usage
Dim index As Integer
Dim item As SyncTable

Me.InsertItem(index, item)
protected override void InsertItem(
    int index,
    SyncTable item
)
protected:
virtual void InsertItem(
    int index, 
    SyncTable^ item
) override
abstract InsertItem : 
        index:int * 
        item:SyncTable -> unit 
override InsertItem : 
        index:int * 
        item:SyncTable -> unit 
protected override function InsertItem(
    index : int, 
    item : SyncTable
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

item is a null reference (Nothing in Visual Basic).

ArgumentException
  • item belongs to a different SyncTableCollection object,

  • item is empty,

  • another table belongs to the same group as item,

    —or—

  • The group name for item is invalid.

See Also

Reference

SyncTableCollection Class

Microsoft.Synchronization.Data Namespace