RemoveSearchScope(String) Method
The RemoveSearchScope method of the SearchScopes class removes a SearchScope object from the SearchScopes collection.
Parameters
strSearchScopeName The name of the SearchScope object to be removed.
Return Value
A 32-bit signed integer. The RemoveSearchScope method returns a value of 0 for success.
Remarks
A default SearchScope object cannot be deleted. You must call the SetDefaultSearchScope(String) method to set another search scope as the default search scope before deleting the current default search scope.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security