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.ContainsValue

Determines if the SortedList contains a specific value.

[Visual Basic]
Overridable Public Function ContainsValue( _
   ByVal value As Object _
) As Boolean
[C#]
public virtual bool ContainsValue(
   object value
);
[C++]
public: virtual bool ContainsValue(
   Object* value
);
[JScript]
public function ContainsValue(
   value : Object
) : Boolean;

Parameters

value
The value to search for in the SortedList.

Return Value

true if the SortedList contains an element with the specified value; otherwise, false.

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. That is, this implementation is an O(n) operation.

See Also

SortedList Class | SortedList Members | System.Collections Namespace | ContainsKey | IndexOfValue