ValueCollection.ToIntegerArray Method

The ToIntegerArray method converts the ValueCollection into an array of integers.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As ValueCollection
Dim returnValue As Long()

returnValue = instance.ToIntegerArray

Syntax

'Declaration
Public MustOverride Function ToIntegerArray As Long()
public abstract long[] ToIntegerArray ()
public:
virtual array<long long>^ ToIntegerArray () abstract
public abstract long[] ToIntegerArray ()
public abstract function ToIntegerArray () : long[]

Return Value

Returns an array of Int64 values that contain the contents of the ValueCollection. Each member of this array contains the integer representation of each element of the ValueCollection.

Exceptions

Exception type Condition
System.InvalidOperationException

One or more of the values in the collection cannot be converted to the specified data type.

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
Value.ToInteger Method