Share via


PromotionCollection.GetPromotionEnumerator Method (PromotionSortField, SortDirection)

Returns an enumerator for all the promotions with a positive (or zero) boost value in the collection, sorting on the specified field in the specified direction.

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

Syntax

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

returnValue = instance.GetPromotionEnumerator(sortField, _
    sortDirection)
IEnumerator<Promotion> GetPromotionEnumerator(
    PromotionSortField sortField,
    SortDirection sortDirection
)

Parameters

Return Value

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

See Also

Reference

PromotionCollection Interface

PromotionCollection Members

GetPromotionEnumerator Overload

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