SearchServiceApplication.GetUnusedScopesForConsumer Method
Returns a list of DisplayGroupInfo objects, and each object is associated with a Scope.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetUnusedScopesForConsumer ( _
consumerName As String _
) As List(Of ScopeInfo)
'Usage
Dim instance As SearchServiceApplication
Dim consumerName As String
Dim returnValue As List(Of ScopeInfo)
returnValue = instance.GetUnusedScopesForConsumer(consumerName)
public List<ScopeInfo> GetUnusedScopesForConsumer(
string consumerName
)
Parameters
consumerName
Type: System.StringThe name of the SearchScope consumer.
Return Value
Type: System.Collections.Generic.List<ScopeInfo>
The list that contains the ScopeInfo for each associated object.
Implements
ISearchSiteAdministrationServiceApplication.GetUnusedScopesForConsumer(String)
Remarks
The value of the consumerName parameter must not be null .
The list of Scope objects is managed by the consumer that is not associated with a SearchScopeDisplayGroup.
See Also
Reference
SearchServiceApplication Class