Microsoft.Win32.Primitives Throws an exception for a Win32 error code. Initializes a new instance of the class with the last Win32 error that occurred. Initializes a new instance of the class with the specified error. The Win32 error code associated with this exception. Initializes a new instance of the class with the specified error and the specified detailed description. The Win32 error code associated with this exception. A detailed description of the error. Initializes a new instance of the class with the specified detailed description. A detailed description of the error. Initializes a new instance of the class with the specified detailed description and the specified exception. A detailed description of the error. A reference to the inner exception that is the cause of this exception. Gets the Win32 error code associated with this exception. The Win32 error code associated with this exception.