다음을 통해 공유


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