關於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