Gets a collection of key/value pairs that provide additional user-defined information about the exception. Initializes a new instance of the InvalidProgramException class with a specified error message and a reference to the inner exception that is the cause of this exception. InvalidProgramException(String, Exception) Initializes a new instance of the InvalidProgramException class with a specified error message. Initializes a new instance of the InvalidProgramException class with default properties. InvalidProgramException uses the HRESULT COR_E_INVALIDPROGRAM, which has the value 0x8013153A.įor a list of initial property values for an instance of InvalidProgramException, see the InvalidProgramException constructors. SerializableAttribute ComVisibleAttribute Remarks Inherits Exception Public NotInheritable Class InvalidProgramException Inherit SystemException Public NotInheritable Class InvalidProgramException Inherit Exception type InvalidProgramException = class Public sealed class InvalidProgramException : SystemException type InvalidProgramException = class Public sealed class InvalidProgramException : SystemException In this article public ref class InvalidProgramException sealed : Exception public ref class InvalidProgramException sealed : SystemException public sealed class InvalidProgramException : Exception public sealed class InvalidProgramException : SystemException
This exception is also thrown when internal runtime implementation limits have been exceeded by the program. Generally this indicates a bug in the compiler that generated the program. The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata.