Share via


ContextCollection.GetEnumerator Method (ContextSortField)

Retrieves an enumerator for all the contexts in the collection, sorting on the specified field in ascending order.

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 ContextSortField _
) As IEnumerator(Of Context)
'Usage
Dim instance As ContextCollection
Dim sortField As ContextSortField
Dim returnValue As IEnumerator(Of Context)

returnValue = instance.GetEnumerator(sortField)
IEnumerator<Context> GetEnumerator(
    ContextSortField sortField
)

Parameters

Return Value

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

Remarks

This may return a potentially large result set.

See Also

Reference

ContextCollection Interface

ContextCollection Members

GetEnumerator Overload

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