DirSyncRequestControl 错误消息
实现代码(c#)来轮询 Active Directory 的更改,但是该行抛出这些错误,不太确定出了什么问题,感谢您的任何想法。
1)“DirectorySynchronizationOptions”是“System.DirectoryServices.DirectorySynchronizationOptions”和“System.DirectoryServices.Protocols.DirectorySynchronizationOptions”之间的不明确引用
2)参数2:无法从“System.DirectoryServices.DirectorySynchronizationOptions”转换为“System.DirectoryServices.Protocols”。 DirectorySynchronizationOptions
也说有无效的论点
DirSyncRequestControl dirSyncRC = new DirSyncRequestControl(cookie, DirectorySynchronizationOptions.IncrementalValues, Int32.MaxValue);
Implementing code (c#) to poll Active Directory for changes, however the line is throwing these errors, not quite sure what is wrong, thanks for any ideas.
1)"DirectorySynchronizationOptions' is an ambiguous reference between 'System.DirectoryServices.DirectorySynchronizationOptions' and 'System.DirectoryServices.Protocols.DirectorySynchronizationOptions"
2)Argument 2: cannot convert from 'System.DirectoryServices.DirectorySynchronizationOptions' to 'System.DirectoryServices.Protocols.DirectorySynchronizationOptions'
also saying that there are invalid arguments
DirSyncRequestControl dirSyncRC = new DirSyncRequestControl(cookie, DirectorySynchronizationOptions.IncrementalValues, Int32.MaxValue);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以尝试一下:
你可以用
using
以另一种方式解决它You can just try :
You can solve it in another way playing with
using