BestBet 类 (Microsoft.Office.Server.Search.Administration)
Represents a best bet in the 企业级搜索 keyword and best bet management system.
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)
语法
声明
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public NotInheritable Class BestBet
用法
Dim instance As BestBet
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
public sealed class BestBet
备注
Use the GetAllBestBets method of the Keywords class to get the collection of all the best bets for a site.
Use the BestBets property of the Keyword class to get the collection of best bets associated with a specific keyword.
To add a new best bet to the collection, use the Create method of the BestBetCollection class.
To remove the association between a best bet and a keyword without deleting the best bet, use the Remove method of the BestBetCollection class.
To delete a best bet, use the Delete method of the BestBet class.
Use an indexer to return a single best bet from the BestBetCollection class. For example, assuming the collection is assigned to a variable named bestBets, use bestBets[
index]
in Microsoft Visual C# or bestBets(
index)
in Microsoft Visual Basic, where index is a System.Uri object representing the best bet's URL.
For more information about keywords and best bets in 企业级搜索, see 管理关键字.
继承层次结构
System.Object
Microsoft.Office.Server.Search.Administration.BestBet
线程安全性
此类型的任何公共静态(在 Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。
另请参阅
参考
BestBet 成员
Microsoft.Office.Server.Search.Administration 命名空间