: BestBetCollection (Clase) (Microsoft.Office.Server.Search.Administration)
Represents a collection of BestBet objects.
Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
Sintaxis
'Declaración
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class BestBetCollection
Implements IEnumerable
'Uso
Dim instance As BestBetCollection
[DefaultMemberAttribute("Item")]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)]
public sealed class BestBetCollection : IEnumerable
Comentarios
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 Enterprise Search, see Administración de palabras clave.
Jerarquía de herencia
System.Object
Microsoft.Office.Server.Search.Administration.BestBetCollection
Seguridad de subprocesos
Todos los miembros estáticos públicos (compartidos en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para los subprocesos.
Vea también
Referencia
BestBetCollection (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)