The ToIntegerArray method converts the ValueCollection into an array of integers.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As ValueCollection
Dim returnValue As Long()

returnValue = instance.ToIntegerArray

Syntax

Visual Basic
Public MustOverride Function ToIntegerArray As Long()
C#
public abstract long[] ToIntegerArray ()
C++
public:
virtual array<long long>^ ToIntegerArray () abstract
J#
public abstract long[] ToIntegerArray ()
JScript
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