Saves the value at a specific index in the SortedList.
[Visual Basic] Overridable Public Sub SetByIndex( _ ByVal index As Integer, _ ByVal value As Object _ ) [C#] public virtual void SetByIndex( int index, object value ); [C++] public: virtual void SetByIndex( int index, Object* value ); [JScript] public function SetByIndex( index : int, value : Object );
None.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | index is outside the range of valid indices for the SortedList. |
This method can be overridden by a derived class.
SortedList Class | SortedList Members | System.Collections Namespace | IndexOfKey | IndexOfValue