Converts a string to a 64-bit integer value.
[Visual Basic] Public Shared Function ToInt64( _ ByVal value As String _ ) As Long [C#] public static long ToInt64( string value ); [C++] public: static __int64 ToInt64( String* value ); [JScript] public static function ToInt64( value : String ) : long;
The 64-bit integer value represented by the string.
Exception Type | Condition |
---|---|
XmlException | If value is null or a reference to a string that does not contain a valid decimal representation of a 64-bit integer. |
The value parameter must be a non-null reference to a string that contains a well-formed decimal representation of a number between -9223372036854775808 and 9223372036854775807. Leading and trailing blanks are not permitted.
XmlString Class | XmlString Members | System.Xml Namespace | FromInt64