关于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。

原文地址:https://www.cnblogs.com/yilang/p/12407669.html