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


Type: System.String

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

Type: System.String

The name of the SearchScope.

Return value

Type: System.Int32
The ID of the SearchScope.


ISearchSiteAdministrationServiceApplication.GetScopeIDFromName(String, String)

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

© 2015 Microsoft