Have you tried looking at the
HResult[
^] property? I don't have a full disk to try it on, so I can;t check. It should return ERROR_DISK_FULL (0x70) or ERROR_HANDLE_DISK_FULL (0x27), but if it doesn't, you will have to use the
Marshal.GetHRForException[
^] method, which will.