Returns the index of the first occurrence of the specified value in the SortedList.
[Visual Basic] Overridable Public Function IndexOfValue( _ ByVal value As Object _ ) As Integer [C#] public virtual int IndexOfValue( object value ); [C++] public: virtual int IndexOfValue( Object* value ); [JScript] public function IndexOfValue( value : Object ) : int;
The index of the first occurence of value, if value is found in the SortedList; otherwise,-1.
This method can be overridden by a derived class.
The values of the elements of the SortedList are compared to the specified value using the Equals method.
This method uses a linear search; therefore, the average execution time is proportional to the size of the SortedList.
SortedList Class | SortedList Members | System.Collections Namespace | ContainsValue | IndexOfKey