SearchContext.GetContext Method (String)
Gets the search context instance for the specified search application name.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Shared Function GetContext ( _
searchApplicationName As String _
) As SearchContext
'Usage
Dim searchApplicationName As String
Dim returnValue As SearchContext
returnValue = SearchContext.GetContext(searchApplicationName)
public static SearchContext GetContext(
string searchApplicationName
)
Parameters
- searchApplicationName
Type: System.String
A string specifying the search application name.
Return Value
Type: Microsoft.Office.Server.Search.Administration.SearchContext
A SearchContext object.
Remarks
For more information about the SearchContext class and the Enterprise Search Administration object model, see Getting Started with the Enterprise Search Administration Object Model and How to: Return the Search Context for the Search Service Provider.