Parses an UInt 64 from a String. The UInt64 type is not CLS compliant. The CLS-compliant alternative is Int64.
[C#] public static ulong FromString( string s ); [C++] public: static unsigned __int64 FromString( String* s ); [JScript] public static function FromString( s : String ) : UInt64;
[Visual Basic] The UInt64 type cannot be used in Visual Basic.
The UInt64 parsed from s.
Exception Type | Condition |
---|---|
ArgumentNullException | If the string is a null reference (in Visual Basic Nothing). |
FormatException | If the string doesn't contain a real number. |
OverflowException | The number is greater than 32767 or less than negative 36768. |
The default (culture-neutral) NumberFormatInfo is used (see NumberFormatInfo and CultureInfo for more information on numeric and culture formats). Use Parse and Format for culture-dependent strings
The output from ToString should be consumable by FromString(). .
UInt64 Structure | UInt64 Members | System Namespace | String