KeywordQuery constructor (ServerContext)

Initializes a new instance of the KeywordQuery class, based on the specified service application context.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

public KeywordQuery(
	ServerContext context


Type: Microsoft.Office.Server.ServerContext

The service application context.

The Context class is deprecated in Microsoft SharePoint Server 2010, so do not use this constructor when you upgrade or write new applications. Use the KeywordQuery(SearchServiceApplicationProxy) constructor instead.