SearchServiceApplication.AddConsumer method

Adds a search scope consumer to the SearchAdminDatabase. Applies to: Microsoft SharePoint Server 2010 search

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

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)

This method adds a search scope consumer to the SearchAdminDatabase.

Show: