关于System.IO.FileNotFoundException异常


什么是FileNotFoundException?

尝试访问磁盘上不存在的文件失败时引发的异常。如果你的代码没有 PathDiscovery 的权限,则此异常的错误消息可能只包含文件或目录名称,而不是完全限定的路径。

继承
FileNotFoundException

异常结构信息

ExceptionAddress: 76f73db2 (KERNELBASE!RaiseException+0x00000062)
   ExceptionCode: e0434352 (CLR exception)
  ExceptionFlags: 00000001
NumberParameters: 5
   Parameter[0]: 80070002
   Parameter[1]: 00000000
   Parameter[2]: 00000000
   Parameter[3]: 00000000
   Parameter[4]: 71c60000

HRESULT

FileNotFoundException 使用值为0x80070002 的 HRESULT COR_E_FILENOTFOUND。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM