SearchServiceApplication.GetBestBetsCount Method

Calculates the number of BestBet attributes 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)


Public Function GetBestBetsCount ( _
    filter As BestBetFilter, _
    value As String, _
    consumerGpId As String _
) As Integer
Dim instance As SearchServiceApplication
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


  • value
    Type: System.String

    A string that is used for comparison when performing the filtering.

  • consumerGpId
    Type: System.String

    The ID of the keyword consumer group to which the BestBet attributes belong.

Return Value

Type: System.Int32
The number of BestBet attributes.


ISearchSiteAdministrationServiceApplication.GetBestBetsCount(BestBetFilter, String, String)


The value of the value parameter must be set to null to calculate the number of all BestBet attributes for the specified keyword consumer group.

See Also


SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace