RenameSearchScope(String, String) Method

The RenameSearchScope method of the SearchScopes class changes the name of the search scope.

Parameters

strFromScopeName The current name of the SearchScope object.

strToScopeName The new name of the SearchScope object.

Return Value

A 32-bit signed integer. The RenameSearchScope(String, String) method returns a value of 0 for success, a value of 1 if strFromScopeName does not exist, a value of 2 if strToScopeName already exists, and a value of 3 for other errors.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security