Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetScopeIDFromName method
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft