Share via


ISearchSiteAdministrationServiceApplication.AddDisplayGroup method

Adds a Search scope display group for a Search scope consumer.

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

Syntax

'Declaration
<OperationContractAttribute> _
Function AddDisplayGroup ( _
    displayGroupInfo As DisplayGroupInfo, _
    <OutAttribute> ByRef statusCode As Integer _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim displayGroupInfo As DisplayGroupInfo
Dim statusCode As Integer
Dim returnValue As Integer

returnValue = instance.AddDisplayGroup(displayGroupInfo, _
    statusCode)
[OperationContractAttribute]
int AddDisplayGroup(
    DisplayGroupInfo displayGroupInfo,
    out int statusCode
)

Parameters

Return value

Type: System.Int32
The execution result.

Remarks

This method returns the ID of the Search scope display group if the execution is successful; otherwise, this method returns -1.

Implementing classes should set statusCode to 0 to indicate successful execution and 1 otherwise.

See also

Reference

ISearchSiteAdministrationServiceApplication interface

ISearchSiteAdministrationServiceApplication members

Microsoft.Office.Server.Search.Administration namespace