The ToInteger method interprets the contents of the Value object as an Int64 value. If the value is binary, it is assumed to be little-endian.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As Value
Dim returnValue As Long

returnValue = instance.ToInteger

Syntax

Visual Basic
Public MustOverride Function ToInteger As Long
C#
public abstract long ToInteger ()
C++
public:
virtual long long ToInteger () abstract
J#
public abstract long ToInteger ()
JScript
public abstract function ToInteger () : long

Return Value

Returns an Int64 value that represents the contents of the Value object.

Exceptions

Exception type Condition
System.InvalidOperationException

The value 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