Version

OnInsertComplete(Int32,WebObjectBase) Method

Receives a notification from the base collection when an Activity has been added or inserted.
Syntax
'Declaration
 
Protected Overloads Overrides Sub OnInsertComplete( _
   ByVal index As Integer, _
   ByVal webObject As WebObjectBase _
) 
protected override void OnInsertComplete( 
   int index,
   WebObjectBase webObject
)

Parameters

index
The index at which the Activity was inserted (zero-based).
webObject
An object reference to the Activity.
Remarks

This notification allows inheritors extending the base collection class to react to insertions (additions) with follow-up processing.

Inheritors must call the base class implementation of this method before their own processing to ensure WebScheduleInfo (which holds a reference to this collection) can be properly informed of a change within the collection.

The index will be equal to the Count when an Activity was added instead of inserted (at any other position than the end of the collection). An Add and an Insert to the end of the collection are indistinguishable.

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