Share via


PromotionCollection.GetDemotionEnumerator Method (PromotionSortField, SortDirection, Int32, Int32)

Returns an enumerator for a subset of the promotions with a negative boost value in the collection, sorting on the specified field in the specified direction. These promotions are called demotions.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

'Declaration
Function GetDemotionEnumerator ( _
    sortField As PromotionSortField, _
    sortDirection As SortDirection, _
    offset As Integer, _
    count As Integer _
) As IEnumerator(Of Promotion)
'Usage
Dim instance As PromotionCollection
Dim sortField As PromotionSortField
Dim sortDirection As SortDirection
Dim offset As Integer
Dim count As Integer
Dim returnValue As IEnumerator(Of Promotion)

returnValue = instance.GetDemotionEnumerator(sortField, _
    sortDirection, offset, count)
IEnumerator<Promotion> GetDemotionEnumerator(
    PromotionSortField sortField,
    SortDirection sortDirection,
    int offset,
    int count
)

Parameters

  • offset
    Type: System.Int32

    The offset into the data set from which values are returned.

  • count
    Type: System.Int32

    The number of elements to return.

Return Value

Type: System.Collections.Generic.IEnumerator<Promotion>
An [IEnumerator] over the demotions.

See Also

Reference

PromotionCollection Interface

PromotionCollection Members

GetDemotionEnumerator Overload

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace