다음을 통해 공유


SearchServiceApplicationProxy.AddBestBetLink Method

Adds an association between an existing Best Bet and a keyword to the Search administration database.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub AddBestBetLink ( _
    bestBet As BestBet, _
    parentSpecialTerm As Keyword, _
    order As Integer _
)
'Usage
Dim instance As SearchServiceApplicationProxy
Dim bestBet As BestBet
Dim parentSpecialTerm As Keyword
Dim order As Integer

instance.AddBestBetLink(bestBet, parentSpecialTerm, _
    order)
public void AddBestBetLink(
    BestBet bestBet,
    Keyword parentSpecialTerm,
    int order
)

Parameters

Implements

ISearchSiteAdministrationServiceApplication.AddBestBetLink(BestBet, Keyword, Int32)

Exceptions

Exception Condition
ArgumentException

A duplicate bestBet with the specified order already exists in the Search administration database.

Exception

An error, such as a SearchServiceApplicationFault, occurred during application execution.

Remarks

The Best Bet represented by the bestBet parameter must exist in the Search administration database.

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace