NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Int64.FromString

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;

Parameters

s
The string containing a number to convert.

Return Value

Returns an Int64 parsed from the specified string.

Exceptions

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.

Remarks

The default (locale-neutral) NumberFormatInfo is used.

Use Parse and Format for locale dependent strings. The output from ToString should be consumable by FromString().

See Also

Int64 Structure | Int64 Members | System Namespace | String | CultureInfo | NumberFormatInfo