Partilhar 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