The exception that is thrown when a data stream is in an invalid format.
See Also: InvalidDataException Members
An System.IO.InvalidDataException is thrown when invalid data is detected in the data stream.