Share via


SearchServiceApplicationProxy.GetScopesForConsumer method

Retrieves a list of information about the Search scopes that is managed by the specified Search scope consumer.

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

Syntax

'Declaration
Public Function GetScopesForConsumer ( _
    consumerName As String _
) As List(Of ScopeInfo)
'Usage
Dim instance As SearchServiceApplicationProxy
Dim consumerName As String
Dim returnValue As List(Of ScopeInfo)

returnValue = instance.GetScopesForConsumer(consumerName)
public List<ScopeInfo> GetScopesForConsumer(
    string consumerName
)

Parameters

  • consumerName
    Type: System.String

    The name of the Search scope consumer.

Return value

Type: System.Collections.Generic.List<ScopeInfo>
The list of information about the Search scopes.

Implements

ISearchSiteAdministrationServiceApplication.GetScopesForConsumer(String)

Exceptions

Exception Condition
Exception

An error occurred during application execution.

Remarks

The value of the consumerName parameter must not be null .

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace