|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Assembly: Microsoft.SharePoint.Search (in Microsoft.SharePoint.Search.dll)
The Query class is not intended to be used directly from your code, but is designed to be the base implementation for the Search Query object model classes.
Instead, you should use the FullTextSqlQuery class for executing Windows SharePoint Services Search SQL Syntax search queries, or the KeywordQuery class for executing Windows SharePoint Services Search Keyword Syntax search queries.
For more information about the Search Query object model, see Windows SharePoint Services Search Query Object Model.