Remove Method
See Also 
SourceCode.Framework Namespace > PersistableObjectCollectionBase<TParent,TItem> Class : Remove Method



item
The item to remove from 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) 
Public Overridable Sub Remove( _
   ByVal item As TItem _
) 
Visual Basic (Usage)Copy Code
Dim instance As PersistableObjectCollectionBase(Of TParent,TItem)
Dim item As TItem
 
instance.Remove(item)
C# 
public virtual void Remove( 
   TItem item
)
C++/CLI 
public:
virtual void Remove( 
   TItem^ item
) 

Parameters

item
The item to remove from 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