且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误代码:-2147023281,消息:“操作失败";在C#中使用advancedSearch()

更新时间:2022-03-10 23:41:43

我发现了

I discovered this link in Microsoft Docs. In my case, the issue was a folder with a single quote, which was not being properly escaped. Since that folder was being used in the Scope property of the AdvacedSearch method, it was throwing the exception. Maybe it should help you to encounter what is missing in your code.