How can I check if IOException is a \"Not enough disk space\" exception type?
At the moment I check to see if the message matches something like \"Not e
System.IOException has a number of derived Exception types, however none of these derived type sound like your exception. You can look at the HResult or the Data property of the exception, perhaps this will have a more specific error code detailed. According to MSDN both those properties are part of that exception type. Just make sure you are try catching the specific exception type, not just the base Exception type.