SearchServiceApplicationProxy.AddDisplayGroup method

Adds a search scope display group for a search scope consumer. Applies to: Microsoft SharePoint Server 2010 search

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

Syntax

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

returnValue = instance.AddDisplayGroup(displayGroupInfo, _
    statusCode)
public int AddDisplayGroup(
    DisplayGroupInfo displayGroupInfo,
    out int statusCode
)

Parameters

  • statusCode
    Type: System.Int32

    Information about the search scope display group.

Return value

Type: System.Int32
The execution result.

Implements

ISearchSiteAdministrationServiceApplication.AddDisplayGroup(DisplayGroupInfo, Int32)

Exceptions

Exception Condition
TimeoutException

The time out for an operation has expired.

EndpointNotFoundException

The remote endpoint could not be found or reached.

Exception

An error, such as a SearchServiceApplicationFault, occurred during application execution.

Remarks

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

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace