SchemaNameCollection::IList::Contains Method (Object^)

 

Determines whether the list contains a specified value.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

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

Parameters

value
Type: System::Object^

The value to locate in the list.

Return Value

Type: System::Boolean

true if the value is found in the list, otherwise false.

Starting with the .NET Framework 2.0, this method uses the Equals and CompareTo methods of the objects in the collection to determine whether item exists. In the earlier versions of the .NET Framework, this determination was made by using the Equals and CompareTo methods of the item parameter on the objects in the collection.

.NET Framework
Available since 1.1
Return to top
Show: