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!

Convert.ToUInt64 (String)

Converts a String to a UInt64 value.

[Visual Basic]
Overloads Public Shared Function ToUInt64( _
   ByVal value As String _
) As UInt64
[C#]
public static ulong ToUInt64(
   string value
);
[C++]
public: static unsigned __int64 ToUInt64(
   String* value
);
[JScript]
public static function ToUInt64(
   value : String
) : UInt64;

Parameters

value
The number to be converted.

Return Value

The converted value.

Exceptions

Exception Type Condition
ArgumentException If value is null.
FormatException If value represents a number that is greater than UInt64.MaxValue or less than UInt64.MinValue. Note that if the beginning of the string value contains a properly formatted numerical value that will result in an overflow and, in addition, the end of the string is improperly formed, it cannot be determined whether an OverflowException or a FormatException will be thrown. This has been implemented this way for performance reasons.

If value does not contain a representation that can be converted to a UInt64 using the Parse(String) method implemented by that type.

Remarks

value is parsed as a decimal unless it is preceded by "0x"; in that case, it is parsed as a hexadecimal number. White space or trailing characters will cause a FormatException.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToUInt64 Overload List