Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

InvalidDataException Constructor

Initializes a new instance of the InvalidDataException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework InvalidDataException() Initializes a new instance of the InvalidDataException class.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework InvalidDataException(String) Initializes a new instance of the InvalidDataException class with a specified error message.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework InvalidDataException(String, Exception) Initializes a new instance of the InvalidDataException class with a reference to the inner exception that is the cause of this exception.
Top

An InvalidDataException is thrown when invalid data is detected in the data stream, such as in the following situations:

  • A row of data in a delimited text file does not have the expected number of fields.

  • An attempt is made to read a binary file, such as word processing document, that has become corrupted.

  • An attempt is made to read bytes from a decompression stream that has an invalid format.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.