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.ToInt64

Converts a string to an Int64 value.

[Visual Basic]
Overridable Public Function ToInt64() As Long
[C#]
public virtual long ToInt64();
[C++]
public: virtual __int64 ToInt64();
[JScript]
public function ToInt64() : long;

Return Value

An Int64 with the value represented by value .

Remarks

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

If the string is parsed as a decimal unless it is preceded by "0x", in which case it is parsed as a hexadecimal number. White space or trailing characters will cause a FormatException. The implementation is provided by Parse.

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