NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SortedList.IndexOfValue

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;

Parameters

value
The value to search for in the SortedList.

Return Value

The index of the first occurence of value, if value is found in the SortedList; otherwise,-1.

Remarks

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.

See Also

SortedList Class | SortedList Members | System.Collections Namespace | ContainsValue | IndexOfKey