다음을 통해 공유


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