Search Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains information about individual searches performed against Outlook items.
public interface class Search
[System.Runtime.InteropServices.Guid("0006300B-0000-0000-C000-000000000046")]
public interface Search
Public Interface Search
- Attributes
Remarks
The Search object contains properties that define the type of search and the parameters of the search itself.
Use the Application object's AdvancedSearch(String, Object, Object, Object) method to return a Search object.
Use the AdvancedSearchComplete event to determine when a given search has completed.
Properties
Application |
Returns an Application object that represents the parent Outlook application for the object. Read-only. |
Class |
Returns an OlObjectClass constant indicating the object's class. Read-only. |
Filter |
Returns a String (string in C#) value that represents the DASL statement used to restrict the search to a specified subset of data. Read-only |
IsSynchronous |
Returns a Boolean (bool in C#) indicating whether the search is synchronous. Read-only. |
Parent |
Returns the parent Object of the specified object. Read-only. |
Results |
Returns a Results collection that specifies the results of the search. Read-only. |
Scope |
Returns a String (string in C#) that specifies the scope of the specified search. Read-only. |
SearchSubFolders |
Returns a Boolean (bool in C#) indicating whether the scope of the specified search included the subfolders of any folders searched. Read-only. |
Session |
Returns the NameSpace object for the current session. Read-only. |
Tag |
Returns a String (string in C#) specifying the name of the current search. The Tag property is used to identify a specific search. Read-only. |
Methods
GetTable() |
Obtains a Table object that contains items filtered by the |
Save(String) |
Saves the search results to a Search Folder. |
Stop() |
Immediately ends the search that is being performed currently. |