The
Contains method determines if the
ValueCollection
contains an element that matches a
Value object.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in
microsoft.metadirectoryservicesex.dll)
Usage
Visual Basic |
Dim instance As ValueCollection
Dim val As Value
Dim returnValue As Boolean
returnValue = instance.Contains(val)
|
Syntax
Visual Basic |
Public MustOverride Function Contains ( _
val As Value _
) As Boolean
|
C# |
public abstract bool Contains (
Value val
)
|
C++ |
public:
virtual bool Contains (
Value^ val
) abstract
|
J# |
public abstract boolean Contains (
Value val
)
|
JScript |
public abstract function Contains (
val : Value
) : boolean
|
Parameters
- val
-
Contains a Value object
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 |
System.ArgumentNullException
|
The argument is null.
|
System.InvalidOperationException
|
The value of the val parameter cannot be converted to
the data type of the collection.
|
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also