SearchContext.GetContext Method (SearchServiceApplication)
NOTE: This API is now obsolete.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Shared Function GetContext ( _
searchApplication As SearchServiceApplication _
) As SearchContext
'Usage
Dim searchApplication As SearchServiceApplication
Dim returnValue As SearchContext
returnValue = SearchContext.GetContext(searchApplication)
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public static SearchContext GetContext(
SearchServiceApplication searchApplication
)
Parameters
- searchApplication
Type: Microsoft.Office.Server.Search.Administration.SearchServiceApplication
Return Value
Type: Microsoft.Office.Server.Search.Administration.SearchContext