Parses an Int64 from a String.
[Visual Basic] Public Shared Function FromString( _ ByVal s As String _ ) As Long [C#] public static long FromString( string s ); [C++] public: static __int64 FromString( String* s ); [JScript] public static function FromString( s : String ) : long;
Returns an Int64 parsed from the specified string.
Exception Type | Condition |
---|---|
ArgumentException | If s is a null reference (in Visual Basic Nothing). |
FormatException | If s does not contain a real number. |
OverflowException | If s is greater than 0x7FFFFFFFFFFFFFFF or less than 0x8000000000000000. |
The default (locale-neutral) NumberFormatInfo is used.
Use Parse and Format for locale dependent strings. The output from ToString should be consumable by FromString().
Int64 Structure | Int64 Members | System Namespace | String | CultureInfo | NumberFormatInfo