SearchContext.GetCurrent 方法
请注意:此 API 现在已过时。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Shared Function GetCurrent ( _
cached As Boolean _
) As SearchContext
用法
Dim cached As Boolean
Dim returnValue As SearchContext
returnValue = SearchContext.GetCurrent(cached)
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public static SearchContext GetCurrent(
bool cached
)
参数
- cached
类型:System.Boolean
返回值
类型:Microsoft.Office.Server.Search.Administration.SearchContext