SynchronizedReadOnlyCollection<T>::IList::Contains Method (Object^)

 

Checks whether the specified object exists in the collection.

Namespace:   System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

private:
virtual bool Contains(
	Object^ value
) sealed = IList::Contains

Parameters

value
Type: System::Object^

The object to locate in the collection.

Return Value

Type: System::Boolean

Returns Boolean.

True if the object is located in the collection; otherwise false.

Exception Condition
ArgumentException

value is not an object of the type contained in the collection.

Returns true if the element value is found in the collection; otherwise false.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: