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



index
The zero-based index at which value can be found.
value
The value of the element to remove from index.

Glossary Item Box

Performs additional custom processes when removing an element from the System.Collections.CollectionBase instance.

Syntax

Visual Basic (Declaration) 
Protected Overrides Sub OnRemove( _
   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.OnRemove(index, value)
C# 
protected override void OnRemove( 
   int index,
   object value
)
C++/CLI 
protected:
void OnRemove( 
   int index,
   Object^ value
) override 

Parameters

index
The zero-based index at which value can be found.
value
The value of the element to remove from 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