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
scopeInfos
Type: System.Collections.Generic.List<ScopeInfo>The list of information about the scopes.
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.