Export (0) Print
Expand All

InvalidProgramException Constructor ()

.NET Framework 1.1

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

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

Remarks

The constructor initializes the Exception.Message property of the new exception to a system-supplied message that describes the error, such as "Metadata is incorrect." This message takes into account the current system culture.

The following table shows the initial property values for an instance of InvalidProgramException.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The localized error message string.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

InvalidProgramException Class | InvalidProgramException Members | System Namespace | InvalidProgramException Constructor Overload List

Show:
© 2015 Microsoft