SearchServiceApplication.GetScopeIDFromName method

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

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

public int GetScopeIDFromName(
	string consumerName,
	string name
)

Parameters

consumerName
Type: System.String

The name of the Search scope consumer that manages the SearchScope.

name
Type: System.String

The name of the SearchScope.

Return value

Type: System.Int32
The ID of the SearchScope.

Implements

ISearchSiteAdministrationServiceApplication.GetScopeIDFromName(String, String)

These values of the consumerName and name parameters must not be null .

Show: