ScopesManager.PruneScopeList method

Gets an enumerator to access the list of Scope objects associated with the specified list of information about scopes.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Protected Function PruneScopeList ( _
    scopeInfos As List(Of ScopeInfo) _
) As IEnumerable
'Usage
Dim scopeInfos As List(Of ScopeInfo)
Dim returnValue As IEnumerable

returnValue = Me.PruneScopeList(scopeInfos)
protected IEnumerable PruneScopeList(
    List<ScopeInfo> scopeInfos
)

Parameters

Return value

Type: System.Collections.IEnumerable
An enumerator to access the scopes.

Remarks

This method determines whether each member of the scopeInfos parameter has a corresponding scope in the list of scopes in the AllScopes property. If the AllScopes contains a corresponding scope, this method returns the item; otherwise, this method returns a new Scope with the identifier of the DisplayGroupInfo as the key.

See also

Reference

ScopesManager class

ScopesManager members

Microsoft.Office.Server.Search.Administration namespace