ISearchSiteAdministrationServiceApplication.AddConsumer method

Adds a Search scope consumer to the database.

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

Syntax

'Declaration
<OperationContractAttribute> _
Function AddConsumer ( _
    consumerName As String _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim consumerName As String
Dim returnValue As Integer

returnValue = instance.AddConsumer(consumerName)
[OperationContractAttribute]
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. The implementing class should return 0 to indicate the method was successful and 1 to indicate that the Search scope consumer already exists.

Remarks

This method adds the specified Search scope consumer to the database, and returns the result of the execution.

See also

Reference

ISearchSiteAdministrationServiceApplication interface

ISearchSiteAdministrationServiceApplication members

Microsoft.Office.Server.Search.Administration namespace