RemoveAt Method
See Also 
SourceCode.Framework Namespace > ReadOnlyPersistableObjectCollectionBase<TParent,TItem> Class : RemoveAt Method



index
The position of the Item in the collection

Glossary Item Box

Removes the specified Item from the collection. This will set the container property of the item to null as well as raise the ItemRemoving event on the Container object.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub RemoveAt( _
   ByVal index As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ReadOnlyPersistableObjectCollectionBase(Of TParent,TItem)
Dim index As Integer
 
instance.RemoveAt(index)
C# 
protected virtual void RemoveAt( 
   int index
)
C++/CLI 
protected:
virtual void RemoveAt( 
   int index
) 

Parameters

index
The position of the Item in the collection

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