如何使用c#以编程方式访问sharepoint foundation 2010搜索引擎? [英] How to Access sharepoint foundation 2010 search engine programatically using c#?

查看:68
本文介绍了如何使用c#以编程方式访问sharepoint foundation 2010搜索引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何以编程方式执行sharepoint 2010 Foundation搜索?我想通过编码在整个sharepoint站点搜索(假设)硬编码字符串并获得结果。当我将运行代码时,它将访问sharepoint基础搜索引擎并向我显示搜索结果。请帮助我...



请记住我不要在基础上有dllMicrosoft.SharePoint.Search.Query。它在Sharepoint Enterprise中可用,因此http://stackoverflow.com/questions/2624798/using-the-search-api-with-sharepoint-foundation-2010-0-results代码对我不起作用。

How can we perform a sharepoint 2010 Foundation search programatically?i.e. I wanna search the whole sharepoint site for a (suppose) hard coded string through coding and get the results. When I'll be running the code it will access the sharepoint foundation search engine and show me the search results.Please help me out...

Please remember i dont have dll "Microsoft.SharePoint.Search.Query" in foundation. It is available in Sharepoint Enterprise hence "http://stackoverflow.com/questions/2624798/using-the-search-api-with-sharepoint-foundation-2010-0-results" code will not work for me.

推荐答案

您可以使用
Microsoft.Office.Server.Search.Query Namespace





点击此处查看更多信息 Microsoft.Office.Server.Search.Query [ ^ ]


这篇关于如何使用c#以编程方式访问sharepoint foundation 2010搜索引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆