Share via


Query Constructor (ServerContext)

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

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 Query(context)
public Query(
    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

Query Class

Query Members

Query Overload

Microsoft.Office.Server.Search.Query Namespace