PromotionCollection.GetDemotionEnumerator Method (PromotionSortField, SortDirection)
Returns an enumerator for all 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 _
) 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.GetDemotionEnumerator(sortField, _
sortDirection)
IEnumerator<Promotion> GetDemotionEnumerator(
PromotionSortField sortField,
SortDirection sortDirection
)
Parameters
sortField
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.PromotionSortFieldThe field on which the result is to be sorted.
sortDirection
Type: Microsoft.SharePoint.Search.Extended.Administration.Common.SortDirectionThe direction in which to sort the collection.
Return Value
Type: System.Collections.Generic.IEnumerator<Promotion>
An [IEnumerator] over the demotions.
See Also
Reference
GetDemotionEnumerator Overload
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace