IOException类 - asp.net 教程-
时间:2010-08-27 来源:星空3
IOException 是使用流、文件和目录访问信息时引发的异常的基类。
“基类库”包括下列类型,每种类型都是 IOException 的一个派生类:
在合适的场合,请使用这些类型而不是 IOException。
  IOException 使用包含值 0x80131620 的 HRESULT COR_E_IO。
  // Catch the IOException generated if the
  // specified part of the file is locked.
  catch(IOException e)
  {
      Console.WriteLine(
          "{0}: The write operation could not " +
          "be performed because the specified " +
          "part of the file is locked.",
          e.GetType().Name);
  }
   
 相关阅读 更多 + 
    
  









