Partilhar via


SearchServiceApplication.GetScopesForConsumer Method

Retrieves a list of ScopeInfo objects 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 SearchServiceApplication
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 SearchScopes information.

Implements

ISearchSiteAdministrationServiceApplication.GetScopesForConsumer(String)

Remarks

The value of the consumerName parameter must not be null .

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace