SearchScope Object
Corresponds to a type of folder tree that can be searched by using the FileSearch object.
Remarks
Each SearchScope object contains a single ScopeFolder object that corresponds to the root folder of the search scope.
Use the Item method of the SearchScopes collection to return a SearchScope object; for example:
|
Ultimately, the SearchScope object is intended to provide access to ScopeFolder objects that can be added to the SearchFolders collection. For an example that demonstrates how this is accomplished, see the SearchFolders collection topic.
See the ScopeFolder object topic to see a simple example of how to return a ScopeFolder object from a SearchScope object.
Example
The following example displays all of the currently available SearchScope objects.
| Visual Basic for Applications |
|---|
|