Version

OnRemovedFromCollection Method (KeyedObjectBase)

Called when this object is being removed from the supplied collection.
Syntax
'Declaration
 
Protected Overridable Sub OnRemovedFromCollection( _
   ByVal primaryCollection As KeyedObjectCollectionBase _
) 
protected virtual void OnRemovedFromCollection( 
   KeyedObjectCollectionBase primaryCollection
)

Parameters

primaryCollection
Collection that this object has been removed from.
Remarks

The default implementation of this method nulls out the PrimaryCollection if the supplied primaryCollection matches the primary collection of this object.

Inheritors overriding this method should always call this base implementation to assure the object has only one distinct primary collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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