InvalidDataException Constructor (String)
Initializes a new instance of the InvalidDataException class with a specified error message.
Assemblies: System (in System.dll)
System.IO (in System.IO.dll)
This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "An invalid argument was specified." This message is localized based on the current system culture.