寻找用于访问 WebDAV 和 SharePoint 文件夹的 WinForms .Net 文件夹/文件浏览器 UI 控件
我需要能够在 WinForms 应用程序中浏览和访问 WebDAV 和 SharePoint 文件夹。
我知道以下用于访问 WebDAV 文件夹的 .Net 库。据我所知,这些似乎不包含任何现成的 WinForms UI 控件,并且需要利用其客户端库构建自己的控件:
http://www.independentsoft.de/webdav/index.html
http://www.webdavsystem.com/client
http://www.eldos.com/sbb/desc-webdav.php
我发现了 ShellMegaPack FolderView 和 FileView 控件,它们似乎通常可以工作(需要更多测试):
http://www.ssware.com/megapack.htm
我想知道是否有其他文件夹/文件浏览器 UI 控件可供我评估。
谢谢,埃兰
I have a need to be able to browse and access WebDAV and SharePoint folders in a WinForms app.
I am aware of the following .Net libraries for accessing WebDAV folders. From what I can tell these do not appear to include any ready to use WinForms UI controls and would require building one's own utilizing their client libraries:
http://www.independentsoft.de/webdav/index.html
http://www.webdavsystem.com/client
http://www.eldos.com/sbb/desc-webdav.php
I have found the ShellMegaPack FolderView and FileView controls, which appear to generally work (more testing is required):
http://www.ssware.com/megapack.htm
I would like to know if there are any other folder/file browser UI controls out there that I could evaluate.
Thanks, Elan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法找到任何满足我需求的控件。我最终写了自己的。 Windows 7 和 .Net 4.0 提供对使用标准 System.IO 库访问 SharePoint 和 WebDAV 文件夹的内置支持。
如果 Web 文件夹需要身份验证,并且身份验证之前已在 Windows 资源管理器中完成,则不需要使用 System.IO 类进行其他身份验证。我还能够通过互操作使用 Windows Shell API 显示 Windows 登录提示对话框以进行身份验证。
更新:
以上内容适用于使用标准 System.IO 类和 Web 文件夹的 UNC 路径的 Windows 7 和 Windows XP。我在 XP 上看到的唯一限制是它不支持 UNC 路径中的自定义端口号,而在 Windows 7 上可以使用自定义端口号。
I was not able to find any control that satisfied my needs. I ended up writing my own. Windows 7 and .Net 4.0 provide built-in support for accessing SharePoint and WebDAV folders using the standard System.IO library.
If a web folder requires authentication and authentication was done earlier in Windows Explorer, then no additional authentication is required using the System.IO classes. I have also been able to show the Windows login prompt dialog for authentication using the Windows Shell APIs through interop.
Update:
The above works on both Windows 7 and Windows XP using standard System.IO classes with UNC path to the web folder. The only limitation I see on XP is that it does not support custom port numbers in the UNC path, whereas on Windows 7 one can use custom port numbers.