System.ComponentModel.Win32Exception Class

Throws an exception for a Win32 error code.

See Also: Win32Exception Members

Syntax

[System.Security.SuppressUnmanagedCodeSecurity]
public class Win32Exception : System.Runtime.InteropServices.ExternalException

Remarks

Win32 error codes are translated from their numeric representations into a system message when they are displayed. Use Win32Exception.NativeErrorCode to access the numeric representation of the error code associated with this exception. For more information about the error codes, see "Win32 Error Codes" in the Platform SDK documentation at tp://msdn.microsoft.com/.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0