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

SearchServiceApplication.AddScope method

Adds a new Search scope to the SearchAdminDatabase.

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

public int AddScope(
	ScopeInfo scopeInfo,
	out int statusCode
)

Parameters

scopeInfo
Type: Microsoft.Office.Server.Search.Administration.ScopeInfo

The information about the new Search scope.

statusCode
Type: System.Int32

The execution status.

Return value

Type: System.Int32
The execution result.

Implements

ISearchSiteAdministrationServiceApplication.AddScope(ScopeInfo, Int32)

This method returns the ID of the Search scope if the addition is successful; otherwise, the method returns -1.

Show:
© 2015 Microsoft