Click or drag to resize

CollectionUtilsContains Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Determines whether an element is in the collection.

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public static bool Contains(
	ICollection col,
	Object obj
)

Parameters

col
Type: System.CollectionsICollection
Collection where element is searched for.
obj
Type: SystemObject
The object to locate in the collection.

Return Value

Type: Boolean
true if the element is found in the collection, false otherwise.
Exceptions
ExceptionCondition
NotSupportedException If col's type is an unknown collection type.
Remarks
This method allows us to determine if an element is in any collection type from the System.Collections namespace since ICollection does not have method "Contains" defined in its interface. When collection is IDictionary object should be DictionaryEntry.
See Also