FileFormatException Constructor

FileFormatException Constructor ()


Creates a new instance of the FileFormatException class.

Namespace:   System.IO
Assembly:  WindowsBase (in WindowsBase.dll)

public FileFormatException()

This constructor uses a default system message that describes the error, such as "An input file or a data stream does not conform to the expected file format specification." This message takes into account the current system culture.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft