Share via


KeywordCollection.GetEnumerator Method (KeywordSortField, SortDirection)

Retrieves an enumerator for all the keywords 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 GetEnumerator ( _
    sortField As KeywordSortField, _
    sortDirection As SortDirection _
) As IEnumerator(Of Keyword)
'Usage
Dim instance As KeywordCollection
Dim sortField As KeywordSortField
Dim sortDirection As SortDirection
Dim returnValue As IEnumerator(Of Keyword)

returnValue = instance.GetEnumerator(sortField, _
    sortDirection)
IEnumerator<Keyword> GetEnumerator(
    KeywordSortField sortField,
    SortDirection sortDirection
)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerator<Keyword>
An [IEnumerator] over the Keywords.

Remarks

This may return a potentially large result set.

See Also

Reference

KeywordCollection Interface

KeywordCollection Members

GetEnumerator Overload

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