[ADSI]::Exists throws an exception instead of returning False

a 夏天 提交于 2019-12-05 11:04:53

Its a bug and Microsoft will not fix it --

http://connect.microsoft.com/VisualStudio/feedback/details/337682/directoryentry-exists-throws-exception-for-non-existent-winnt-object

We are resolving this bug as won't fix. Although the design isn't right... Apps might have been written expecting this - and the change might break those apps. The workaround is to catch the exception - not pretty, agreed, but not enough justification for a fix. The documentation needs to be fixed and I will open a doc workitem for this.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!