ValueCollection.Contains Method
The Contains (String) method determines if the ValueCollection contains an element that matches a string value.
Syntax
public Boolean Contains(
String value
);
Public Function Contains( _
ByVal value As String _
) As Boolean
Parameters
- value
Contains a String value to search for in the ValueCollection.
Return Value
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 | ILM 2007 FP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
See Also
Send comments about this topic to Microsoft
Build date: 2/16/2009