C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToInt64 Method
ToInt64 Method (Boolean)
ToInt64 Method (Byte)
ToInt64 Method (Char)
ToInt64 Method (DateTime)
ToInt64 Method (Decimal)
ToInt64 Method (Double)
ToInt64 Method (Int16)
ToInt64 Method (Int32)
ToInt64 Method (Int64)
ToInt64 Method (Object)
ToInt64 Method (SByte)
ToInt64 Method (Single)
ToInt64 Method (String)
ToInt64 Method (UInt16)
ToInt64 Method (UInt32)
ToInt64 Method (UInt64)
ToInt64 Method (Object, IFormatProvider)
ToInt64 Method (String, IFormatProvider)
ToInt64 Method (String, Int32)
Convert
ToInt64 Method (DateTime)
Calling this method always throws
InvalidCastException
.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
long
ToInt64
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
Int64
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToInt64 Overload
System Namespace