Share via


FileSearch Members

Include Protected Members
Include Inherited Members

Represents the functionality of the Open dialog box accessible by the File menu.

The FileSearch type exposes the following members.

Properties

  Name Description
Public property Application (Inherited from _IMsoDispObj.)
Public property Application Returns an Application object that represents the container application for the object.
Public property Creator (Inherited from _IMsoDispObj.)
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property FileName Returns or sets the name of the file to look for during a file search.
Public property FileType Returns or sets the type of file to look for during a file search.
Public property FileTypes Returns a FileTypes collection.
Public property FoundFiles Returns a FoundFiles object that contains the names of all the files found during a search.
Public property LastModified Returns or sets a constant that represents the amount of time since the specified file was last modified and saved.
Public property LookIn Returns or sets the folder to be searched during the specified file search.
Public property MatchAllWordForms Determines if the file search is expanded to include all forms of the specified word contained in the body of the file or in the file's properties.
Public property MatchTextExactly Determines if the specified file search will find only files whose body text or file properties contain the exact word or phrase that you've specified.
Public property PropertyTests Returns the PropertyTests collection that represents all the search criteria for a file search.
Public property SearchFolders Returns a SearchFolders collection.
Public property SearchScopes Returns a SearchScopes collection.
Public property SearchSubFolders Determines if the search includes all the subfolders in the folder specified by the LookIn property.
Public property TextOrProperty Returns or sets the word or phrase to be searched for, in either the body of a file or the file's properties, during the file search.

Top

Methods

  Name Description
Public method Execute Begins the search for the specified file(s).
Public method NewSearch Resets all the search criteria settings to their default settings.
Public method RefreshScopes Refreshes the list of currently available ScopeFolder objects.

Top

See Also

Reference

FileSearch Interface

Microsoft.Office.Core Namespace