SearchServiceApplicationProxy.GetBestBetForSpecialTerm 方法

检索指定的 URL、 关键字和关键字的使用者组有关最佳匹配的信息。

命名空间:  Microsoft.Office.Server.Search.Administration
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Function GetBestBetForSpecialTerm ( _
    url As Uri, _
    parentSpecialTerm As Keyword, _
    consumerGpId As String _
) As BestBet
用法
Dim instance As SearchServiceApplicationProxy
Dim url As Uri
Dim parentSpecialTerm As Keyword
Dim consumerGpId As String
Dim returnValue As BestBet

returnValue = instance.GetBestBetForSpecialTerm(url, _
    parentSpecialTerm, consumerGpId)
public BestBet GetBestBetForSpecialTerm(
    Uri url,
    Keyword parentSpecialTerm,
    string consumerGpId
)

参数

  • consumerGpId
    类型:System.String

    关键字的使用者组的 ID。

返回值

类型:Microsoft.Office.Server.Search.Administration.BestBet
搜索关键字的最佳匹配。

实现

ISearchSiteAdministrationServiceApplication.GetBestBetForSpecialTerm(Uri, Keyword, String)

异常

异常 条件
ArgumentException

搜索管理数据库中找不到最佳使用指定的属性匹配。

Exception

在应用程序执行期间发生错误如SearchServiceApplicationFault

备注

url参数的值必须不 null 。

parentSpecialTerm参数的值必须不 null 。

另请参阅

引用

SearchServiceApplicationProxy 类

SearchServiceApplicationProxy 成员

Microsoft.Office.Server.Search.Administration 命名空间