阅读背景:

如何在没有尝试的情况下检查File.Delete()是否会成功,在C#中?

来源:互联网 

In C#, System.IO.File.Delete(filePath) will either delete the specified file, or raise an exception. If the current user doesn't have permission to delete the file, it'll raise an UnauthorizedAccessException.In C#, System.IO.File.Delete(filePath) will eit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: