[This is preliminary documentation and is subject to change.]
Performs additional custom processes before setting a value in the collection instance.
| C# | Visual Basic | Visual C++ |
protected override void OnSet( int index, Object oldValue, Object newValue )
Protected Overrides Sub OnSet ( _ index As Integer, _ oldValue As Object, _ newValue As Object _ )
protected: virtual void OnSet( int index, Object^ oldValue, Object^ newValue ) override
- index (Int32)
- The zero-based index at which oldValue can be found.
- oldValue (Object)
- The value to replace with newValue.
- newValue (Object)
- The new value of the element at index.