CreateSearchScope(String, Boolean, Microsoft.SharePoint.Portal.Search.ObjectModel.SearchScope) Method
The CreateSearchScope method of the SearchScopes class adds a SearchScope object to the list.
Parameters
strSearchScopeName The name of the SearchScope object.
fDefault true if the SearchScope object that is added is the default search scope; otherwise, false.
sc The SearchScope object that is added to the search scopes list.
Return Value
A 32-bit signed integer. A value of 0 means success; a value of -1 means the scope name is invalid.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security