This documentation is archived and is not being maintained.

FormatException Constructor

.NET Framework 1.1

Initializes a new instance of the FormatException class.

Overload List

Initializes a new instance of the FormatException class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public FormatException();
[C++] public: FormatException();
[JScript] public function FormatException();

Initializes a new instance of the FormatException class with a specified error message.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public FormatException(string);
[C++] public: FormatException(String*);
[JScript] public function FormatException(String);

Initializes a new instance of the FormatException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected FormatException(SerializationInfo, StreamingContext);
[C++] protected: FormatException(SerializationInfo*, StreamingContext);
[JScript] protected function FormatException(SerializationInfo, StreamingContext);

Initializes a new instance of the FormatException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public FormatException(string, Exception);
[C++] public: FormatException(String*, Exception*);
[JScript] public function FormatException(String, Exception);

See Also

FormatException Class | FormatException Members | System Namespace

Show: