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
)

参数

返回值

类型:Microsoft.Office.Server.Search.Administration.SearchContext

另请参阅

引用

SearchContext 类

SearchContext 成员

Microsoft.Office.Server.Search.Administration 命名空间