System.FormatException Class
Represents errors caused by passing incorrectly formatted arguments or invalid format specifiers to methods.

See Also: FormatException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class FormatException : SystemException

Remarks

Note: FormatException is thrown from Parse methods when a string being parsed contains characters that are not valid according to the specified style (passed via the style parameter) or default style. FormatException is thrown from ToString methods when a format specifier (passed via the format parameter) is not a valid format for the type of the current instance.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

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