DbSyncColumnMappingCollection.SetItem Method
Replaces the DbSyncColumnMapping object at the specified index.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Protected Overrides Sub SetItem ( _
index As Integer, _
item As DbSyncColumnMapping _
)
'Usage
Dim index As Integer
Dim item As DbSyncColumnMapping
Me.SetItem(index, item)
protected override void SetItem(
int index,
DbSyncColumnMapping item
)
protected:
virtual void SetItem(
int index,
DbSyncColumnMapping^ item
) override
abstract SetItem :
index:int *
item:DbSyncColumnMapping -> unit
override SetItem :
index:int *
item:DbSyncColumnMapping -> unit
protected override function SetItem(
index : int,
item : DbSyncColumnMapping
)
Parameters
- index
Type: System.Int32
The position in DbSyncColumnMappingCollection at which to replace the DbSyncColumnMapping object.
- item
Type: Microsoft.Synchronization.Data.DbSyncColumnMapping
The DbSyncColumnMapping object to replace the existing object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item is a null reference (Nothing in Visual Basic). |
ArgumentException | item has already been added to another DbSyncColumnMappingCollection object or the column name is being used for another columng on the local or remote version.. |