SearchServiceApplicationProxy.GetBestBetsCount method

Retrieves the number of Best Bets for the specified keyword consumer group that match the specified filtering criteria.

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

Syntax

'Declaration
Public Function GetBestBetsCount ( _
    filter As BestBetFilter, _
    value As String, _
    consumerGpId As String _
) As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
Dim filter As BestBetFilter
Dim value As String
Dim consumerGpId As String
Dim returnValue As Integer

returnValue = instance.GetBestBetsCount(filter, _
    value, consumerGpId)
public int GetBestBetsCount(
    BestBetFilter filter,
    string value,
    string consumerGpId
)

Parameters

  • value
    Type: System.String

    The value that is used for comparison when performing the filtering.

  • consumerGpId
    Type: System.String

    The ID of the keyword consumer group to which the Best Bets belong.

Return value

Type: System.Int32
The number of Best Bets that match the filter criteria.

Implements

ISearchSiteAdministrationServiceApplication.GetBestBetsCount(BestBetFilter, String, String)

Exceptions

Exception Condition
Exception

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

Remarks

Set value to null to retrieve the total number of all Best Bets for the specified keyword consumer group.

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace