Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method.
true to indicate that the callee will call SetLastError; otherwise, false. The default is false.
The runtime marshaler calls GetLastError and caches the value returned to prevent it from being overwritten by other API calls. You can retrieve the error code by calling Marshal.GetLastWin32Error.