Keywords.GetAllBestBets 方法

Keywords类的此实例相关联的站点获取所有该关键字最佳匹配。

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

语法

声明
Public Function GetAllBestBets As BestBetCollection
用法
Dim instance As Keywords
Dim returnValue As BestBetCollection

returnValue = instance.GetAllBestBets()
public BestBetCollection GetAllBestBets()

返回值

类型:Microsoft.Office.Server.Search.Administration.BestBetCollection
一个BestBetCollection对象,它代表的最佳匹配的站点的集合。

备注

使用Keywords类的AllKeywords属性来获取与特定站点关联的所有关键字的集合。

若要向集合中添加一个关键字,使用KeywordCollection类的**Create()**方法。

若要删除关键字,使用Keyword类的Delete方法。

使用索引器从KeywordCollection类返回单个关键字。例如,假定该集合分配给名为siteKeywords的变量,使用siteKeywords[index] 在 Microsoft Visual C# 或siteKeywords(index) 在 Microsoft Visual Basic 中,其中, index是一个字符串,表示关键字术语。

有关关键字和最佳匹配中SharePoint 企业级搜索的详细信息,请参阅Managing Keywords

另请参阅

引用

Keywords 类

Keywords 成员

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