我如何知道用户是否在 OpenFileDialog 中选择了 SharePoint 文件?
在 OpenFileDialog 中,用户可以输入 SharePoint 站点的地址并选择文档库中的文档。 我需要为 SharePoint 文档提供签入/签出集成。有什么方法可以确定文件是否存储在 SharePoint 文档库中?
提前致谢!
In an OpenFileDialog, the user can enter the address of the SharePoint site and select a document in the document library.
I need to provide check-in/check-out integration for SharePoint documents. Is there any way to determine if the file is stored in a SharePoint document library?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对话框返回后,您可以检查所选文件的值。如果有值,他们可能选择了一个文件。您可以通过尝试打开文件来验证是否确实选择了该文件。
从这里开始: http://msdn.microsoft.com/ en-us/library/system.windows.forms.openfiledialog.aspx
After the dialog returns, you can check the value of the selected file. If there's a value, they probably selected a file. You can validate that a file was actually selected by attempting to open the file.
Start here: http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx