【发布时间】:2013-08-07 16:26:07
【问题描述】:
我有一些代码循环通过页面上的 web 部件寻找高级搜索框以更改某些属性。非常简单的东西,本质上:
if (webpart is AdvancedSearchBox) {
do stuff;
}
我在与 SharePoint 2010 相关的代码(例如 http://weblogs.asp.net/spano/archive/2012/07/20/customizing-a-sharepoint-2010-search-center.aspx)中看到博客上引用了此类,但我终生无法找到该类本身。我能找到的唯一官方参考是 2007 -http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.webcontrols.advancedsearchbox(v=office.12).aspx,无论我包含什么程序集,Intellisense 都无法识别它。
我希望我遗漏了一些明显的东西 - 有谁知道这个类在哪里,或者它是否已被弃用? Web 部件本身已经在我们的解决方案中使用,因此它肯定存在于某个地方。 非常感谢!
【问题讨论】:
标签: sharepoint sharepoint-2010