Share via


SearchServiceApplication.AddConsumer Method

Adds a Search scope consumer to the SearchAdminDatabase.

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

Syntax

'Declaration
Public Function AddConsumer ( _
    consumerName As String _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim consumerName As String
Dim returnValue As Integer

returnValue = instance.AddConsumer(consumerName)
public int AddConsumer(
    string consumerName
)

Parameters

  • consumerName
    Type: System.String

    The name that uniquely identifies the Search scope consumer.

Return Value

Type: System.Int32
The execution result.
0 indicates successful execution; 1 indicates that the Search scope consumer already exists.

Implements

ISearchSiteAdministrationServiceApplication.AddConsumer(String)

Remarks

This method adds a Search scope consumer to the SearchAdminDatabase.

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace