OnInsert Method
See Also 
SourceCode.Framework Namespace > PersistableObjectList<T> Class : OnInsert Method



index
The zero-based index at which to insert value.
value
The new value of the element at index.

Glossary Item Box

Performs additional custom processes before inserting a new element into the System.Collections.CollectionBase instance.

Syntax

Visual Basic (Declaration) 
Protected Overrides Sub OnInsert( _
   ByVal index As Integer, _
   ByVal value As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As PersistableObjectList(Of T)
Dim index As Integer
Dim value As Object
 
instance.OnInsert(index, value)
C# 
protected override void OnInsert( 
   int index,
   object value
)
C++/CLI 
protected:
void OnInsert( 
   int index,
   Object^ value
) override 

Parameters

index
The zero-based index at which to insert value.
value
The new value of the element at index.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also