Mono Class Library: System.Xml.XmlConvert Overview | Members

System.Xml.XmlConvert.ToInt64 Method

Converts a string to a long equivalent.

public static long ToInt64 (string s)

Parameters

s
The string to convert.

Returns

The long equivalent of s.

Exceptions

TypeReason
ArgumentNullExceptions is a null reference.
FormatExceptions is not in the correct format.
OverflowExceptions represents a number less than long.MinValue or greater than long.MaxValue.

Remarks

This method calls long.Parse(string)(s, System.Globalization.NumberStyles.AllowLeadingSign|System.Globalization.NumberStyles.AllowLeadingWhite|System.Globalization.NumberStyles.AllowTrailingWhite, System.Globalization.NumberFormatInfo.InvariantInfo).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0