SearchServiceApplication.GetDisplayGroupIDFromName method

Retrieves the ID of a SearchScopeDisplayGroup with the specified SearchScopeDisplayGroup name and the Search scope consumer name.

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

Syntax

'Declaration
Public Function GetDisplayGroupIDFromName ( _
    consumerName As String, _
    name As String _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim consumerName As String
Dim name As String
Dim returnValue As Integer

returnValue = instance.GetDisplayGroupIDFromName(consumerName, _
    name)
public int GetDisplayGroupIDFromName(
    string consumerName,
    string name
)

Parameters

Return value

Type: System.Int32
The ID of the SearchScopeDisplayGroup.

Implements

ISearchSiteAdministrationServiceApplication.GetDisplayGroupIDFromName(String, String)

Remarks

This return value will be set to null if the SearchScopeDisplayGroup does not exist.

The value of the consumerName parameter must not be null .

The value of the name parameter must not be null .

See also

Reference

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace