This documentation is archived and is not being maintained.

InvalidProgramException Constructor

.NET Framework 1.1

Initializes a new instance of the InvalidProgramException class.

Overload List

Initializes a new instance of the InvalidProgramException class with default properties.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public InvalidProgramException();
[C++] public: InvalidProgramException();
[JScript] public function InvalidProgramException();

Initializes a new instance of the InvalidProgramException class with a specified error message.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public InvalidProgramException(string);
[C++] public: InvalidProgramException(String*);
[JScript] public function InvalidProgramException(String);

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.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public InvalidProgramException(string, Exception);
[C++] public: InvalidProgramException(String*, Exception*);
[JScript] public function InvalidProgramException(String, Exception);

See Also

InvalidProgramException Class | InvalidProgramException Members | System Namespace

Show: