Microsoft
Software
Hardware
Network
Question : Visual Basic .Net, Need the Specific reason an IOException was thrown.
Is there an equivilant to C's errno in catching an IOException in .Net? I have an app that tests for locks, and I want to make sure I am waiting because the error was a locking problem, not another problem ("Access Denied", etc.). I do not want to parse the error string (could change, not language independent) or retrieve process list and look for my file (too much CPU). Is there a feature of .Net that works like errno?
Thanks.
Answer : Visual Basic .Net, Need the Specific reason an IOException was thrown.
Possibly?
Marshal.GetLastWin32Error,
or Err.LastDllError
Random Solutions
access 2007-label and textbox bound together
CSS: Relative positioning and IE7
VB.Net String remove everthing after second space in string
ASP.NET - Cant see hotspot region in Design mode in order to modify...
How to get Unicode characters from clipboard on VB6
Implementing optional parameters in a function - C#
IIS InterviewH
I need to restore some files from Win 98 backup
actionscript shortName?
USB Keyboard runs on XP, but not on Win 7 Pro