AddToSearchFolders Method
Adds a ScopeFolder object the SearchFolders collection.
expression.AddToSearchFolders
*expression * Required. An expression that returns a ScopeFolder object.
Remarks
Although you can use the SearchFolders collection's Add method to add a ScopeFolder object to the SearchFolders collection, it is usually simpler to use the AddToSearchFolders method of the ScopeFolder object that you want to add, because there is only one SearchFolders collection for all searches.
Example
The following example adds the root ScopeFolder object to the SearchFolders collection. For a longer example that uses the AddToSearchFolders method, see the SearchFolders collection topic.
Application.FileSearch.SearchScopes(1).ScopeFolder.AddToSearchFolders
Applies to | ScopeFolder Object
See Also | Add Method