Microsoft Identity Integration Server 2003 Developer Reference

ValueCollection.Contains (Value)

The Contains (Value) method determines if the ValueCollection contains an element that matches a Value object.
public bool Contains(
  Value val
[Visual Basic .NET]
Public Function Contains( _
  ByVal val As Value _
) As Boolean


Contains a Value object search for in the ValueCollection.

Return Values

Returns True if the ValueCollection object contains an element that matches val or False if it does not.


Exception type Condition
ArgumentNullException The argument is null.
InvalidOperationException The value of the val parameter cannot be converted to the data type of the collection.


Product: Microsoft Identity Integration Server 2003
Namespace: Defined in Microsoft.MetadirectoryServices.
Assembly: Requires Microsoft.MetadirectoryServices (in Microsoft.MetadirectoryServices.dll).
.NET Framework: Requires .NET Framework 1.1.

See Also

Value, ValueCollection