Partilhar via


KeywordQuery Class

Represents a search query that uses the SharePoint Enterprise Search keyword syntax. For information about constructing keyword queries, see the Keyword Query Syntax Reference.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Server.Search.Query.Query
    Microsoft.Office.Server.Search.Query.KeywordQuery

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class KeywordQuery _
    Inherits Query
'Usage
Dim instance As KeywordQuery
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class KeywordQuery : Query

Remarks

For FAST Search Server 2010 for SharePoint, you can also specify the query using the FAST Query Language (FQL) syntax.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

KeywordQuery Members

Microsoft.Office.Server.Search.Query Namespace