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

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.

See also

Reference

KeywordQuery class

KeywordQuery members

KeywordQuery overload

Microsoft.Office.Server.Search.Query namespace