Value.ToInteger Method
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
'Usage
Dim instance As Value
Dim returnValue As Long
returnValue = instance.ToInteger
Syntax
'Declaration
Public MustOverride Function ToInteger As Long
public abstract long ToInteger ()
public:
virtual long long ToInteger () abstract
public abstract long ToInteger ()
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
Reference
Value Class
Value Members
Microsoft.MetadirectoryServices Namespace