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!

UInt64.FromString

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.

Parameters [C#, C++, JScript]

s
A string containing a number.

Return Value [C#, C++, JScript]

The UInt64 parsed from s.

Exceptions [C#, C++, JScript]

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.

Remarks [C#, C++, JScript]

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(). .

See Also

UInt64 Structure | UInt64 Members | System Namespace | String