SearchContext.GetContext method (String)

NOTE: This API is now obsolete.

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)

[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public static SearchContext GetContext(
	string searchApplicationName
)

Parameters

searchApplicationName
Type: System.String

A string specifying the search application name.

For more information about the SearchContext class and the SharePoint Enterprise Search Administration object model, see Getting Started with the Search Administration Object Model and How to: Return the Search Context for the Search Service Provider.

Show: