Win32Exception Constructor (Int32, String)
.NET Framework 4
Initializes a new instance of the Win32Exception class with the specified error and the specified detailed description.
Assembly: System (in System.dll)
Parameters
- error
- Type: System.Int32
The Win32 error code associated with this exception.
- message
- Type: System.String
A detailed description of the error.
-
SecurityPermission
for access to unmanaged code. Associated enumeration: UnmanagedCode
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
False remark
The remark is false at least on .Net Framework 4, the message field is directly used, FormatMessage is never called on the error code.
- 11/19/2010
- virtualblackfox