50
SearchScope Object and the SearchScopes
Collection Object
The SearchScopeobject represents an individual top-level area in the SearchScopescollection object
that can be searched when using the FileSearchobject. The SearchScopescollection object contains
the list of top-level searchable areas when performing a File Search using the FileSearchobject. Top-
level areas include My Computer, My Network Places, Outlook (folders), and Custom, if available. You
will note that although these objects are meant to be used with the FileSearchobject, the FileSearch
object is no longer part of the Office 2007 object model.
SearchScopes Collection Properties
The Application, Count, and Creatorproperties are defined at the beginning of this appendix.
Name
Returns
Parameters
Description
Item
SearchScope
IndexasLong
Returns a SearchScopeobject that
corresponds to an area in which to
perform a file search, such as local
drives or Microsoft Outlook folders.
SearchScope Properties
The Applicationand Creatorproperties are defined at the beginning of this appendix.
Name
Returns
Description
ScopeFolder
ScopeFolder
Read-only. Returns a ScopeFolderobject.
Type
MsoSearchIn
Read-only. Returns a value that corresponds to the type of
SearchScopeobject. The type indicates the area in which
the Executemethod of the FileSearchobject will search
for files.
SharedWorkspace Object
The SharedWorkspaceproperty returns a SharedWorkspaceobject that allows the developer to add
the active document to a Microsoft Windows SharePoint Services document workspace on the server,
and to manage other objects in the shared workspace.
SharedWorkspace Properties
The Application, Creator, and Parentproperties are defined at the beginning of this appendix.
Name
Returns
Description
Connected
Boolean
Read-only. Indicates if the current document is saved in
and connected to a workspace.
1054
SearchScope Object and the SearchScopes Collection Object