Constable Authorization Engine 2.0 BETA

CollectionUpdaterBase.OnInsert Method 

[This is preliminary documentation and subject to change.]

Provides a placeholder for derived classes to implement validation logic when inserting an item into the associated collection.

[Visual Basic]
Overridable Public Sub OnInsert( _
   ByVal collection As CollectionBase, _
   ByVal index As Integer, _
   ByVal value As Object _
) _
    Implements ICollectionUpdater.OnInsert
[C#]
public virtual void OnInsert(
   CollectionBase collection,
   int index,
   object value
);

Parameters

collection
The collection that is associated with this updater.
index
The index of the item being inserted into the collection.
value
The item being inserted into the collection.

Implements

ICollectionUpdater.OnInsert

Remarks

Note Always call this base class method in your derived classes.

Exceptions

Exception Type Condition
ArgumentNullException A a null reference (Nothing in Visual Basic) was passed as the collection argument value.

See Also

CollectionUpdaterBase Class | LaMarvin.ComponentModel Namespace