ValueCollection.Contains Method (Int64)
The Contains method determines if the ValueCollection contains an element that matches an integer value.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As ValueCollection
Dim val As Long
Dim returnValue As Boolean
returnValue = instance.Contains(val)
Syntax
'Declaration
Public MustOverride Function Contains ( _
val As Long _
) As Boolean
public abstract bool Contains (
long val
)
public:
virtual bool Contains (
long long val
) abstract
public abstract boolean Contains (
long val
)
public abstract function Contains (
val : long
) : boolean
Parameters
- val
Contains an Int64 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 |
---|---|
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
Reference
ValueCollection Class
ValueCollection Members
Microsoft.MetadirectoryServices Namespace