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!

String.ToUInt64

Converts a string to a UInt64 value.

[Visual Basic]
Overridable Public Function ToUInt64() As UInt64
[C#]
public virtual ulong ToUInt64();
[C++]
public: virtual unsigned __int64 ToUInt64();
[JScript]
public function ToUInt64() : UInt64;

Return Value

The converted string .

Remarks

The ToUInt64 implementation is the same as ToUInt64. (In addition information, see U Int64, Convert and Value.)

The string 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.

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.

See Also

String Class | String Members | System Namespace