Microsoft Identity Integration Server 2003 Developer Reference

ValueCollection.Contains (String)

The Contains (String) method determines if the ValueCollection contains an element that matches a string value.
[C#]
public Boolean Contains(
  String val
);
[Visual Basic .NET]
Public Function Contains( _
  ByVal val As String _
) As Boolean

Parameters

val
Contains a string value to 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.

Exceptions

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.

Requirements

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

ValueCollection