Constable Authorization Engine 2.0 BETA

CollectionUpdaterBase.OnSet Method 

[This is preliminary documentation and subject to change.]

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

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

Parameters

collection
The collection that is associated with this updater.
index
The index of the item being replaced in the collection.
oldValue
The item being replaced in the collection.
newValue
The item that replaces the oldValue.

Implements

ICollectionUpdater.OnSet

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