Share via


KeywordQuery Constructor (String)

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

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

Syntax

'Declaration
Public Sub New ( _
    strApplication As String _
)
'Usage
Dim strApplication As String

Dim instance As New KeywordQuery(strApplication)
public KeywordQuery(
    string strApplication
)

Parameters

  • strApplication
    Type: System.String
    A string specifying the application name.

See Also

Reference

KeywordQuery Class

KeywordQuery Members

KeywordQuery Overload

Microsoft.Office.Server.Search.Query Namespace

Other Resources

Enterprise Search Keyword Syntax Reference

Enterprise Search Query Object Model Overview

Walkthrough: Creating a Custom Enterprise Search Web Part