Query 类

请注意:此 API 现在已过时。

执行搜索查询使用搜索查询对象模型提供基类。此类定义的属性和共享的FullTextSqlQueryKeywordQuery类的方法。

继承层次结构

System.Object
  Microsoft.SharePoint.Search.Query.Query
    Microsoft.SharePoint.Search.Query.KeywordQuery

命名空间:  Microsoft.SharePoint.Search.Query
程序集:  Microsoft.SharePoint.Search(位于 Microsoft.SharePoint.Search.dll 中)

语法

声明
<ObsoleteAttribute("This class is obsolete.")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class Query _
    Implements IDisposable
用法
Dim instance As Query
[ObsoleteAttribute("This class is obsolete.")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class Query : IDisposable

备注

Query类不应从代码中直接使用,但被设计为搜索查询对象模型类的基实现。

相反,您应使用FullTextSqlQuery类执行SQL syntax搜索查询或KeywordQuery类执行Keyword syntax搜索查询。

有关搜索的查询对象模型的详细信息,请参阅Query Object Model

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

Query 成员

Microsoft.SharePoint.Search.Query 命名空间