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)
Syntax
'Declaration
Public Sub New ( _
context As ServerContext _
)
'Usage
Dim context As ServerContext
Dim instance As New KeywordQuery(context)
public KeywordQuery(
ServerContext context
)
Parameters
context
Type: Microsoft.Office.Server.ServerContextThe service application context.
Remarks
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.