A UInt16 equivalent of the string.
Type Reason ArgumentNullException s is a null reference. FormatException s is not in the correct format. OverflowException s represents a number less than ushort.MinValue or greater than ushort.MaxValue.
This member is not CLS-compliant. For a CLS-compliant alternative, use XmlConvert.ToInt32(string)(string).
This method calls ushort.Parse(string)(s, System.Globalization.NumberStyles.AllowLeadingSign|System.Globalization.NumberStyles.AllowLeadingWhite|System.Globalization.NumberStyles.AllowTrailingWhite, System.Globalization.NumberFormatInfo.InvariantInfo).