Determines whether all the elements in the specified ICollection are contained in the list.
[Visual Basic]
Overridable Overloads Public Function Contains( _
ByVal collection As ICollection _
) As Boolean Implements _
IList2.Contains
true if all the elements of the ICollection are
found in the list; otherwise, false.
This method determines equality by calling Equals.
Keep in mind that the Object to locate can be a
null reference (Nothing in Visual Basic). If you do
not want this behaviour you must override this method.
| Exception Type | Condition |
|---|---|
| System.NullReferenceException |
The collection is a null reference
(Nothing in Visual Basic).
|
List2Base Class | List2Base Members | Foley.Utilities.Collections Namespace | List2Base.Contains Overload List