如何使用c#以编程方式访问sharepoint foundation 2010搜索引擎?

问题描述:

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



请记住我不要在基础上有dllMicrosoft.SharePoint.Search.Query。它在Sharepoint Enterprise中可用,因此http://*.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://*.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 [ ^ ]