.Net UnauthorizedAccessException类 [英] .Net UnauthorizedAccessException class

查看:103
本文介绍了.Net UnauthorizedAccessException类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


发生对OS异常的无效访问时,将使用哪个异常类引发"访问被拒绝"异常;是 UnauthorizedAccessException 类吗?

问候
Sebastian

Hi,
Which exception class will be used to throw "Access Denied" Exception, when an invalid access to the OS exception occurs; is it UnauthorizedAccessException class ?

Regards
Sebastian

推荐答案

通常,是的-尽管没有什么能阻止您自己的代码丢给自己.
Generally, yes - although there is nothing stopping your own code from throwing one yourself.


这篇关于.Net UnauthorizedAccessException类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆