Search Search Search Interface

Definition

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 Application Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class Class Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Filter Filter 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 IsSynchronous IsSynchronous

Returns a Boolean (bool in C#) indicating whether the search is synchronous. Read-only.

Parent Parent Parent

Returns the parent Object of the specified object. Read-only.

Results Results Results

Returns a Results collection that specifies the results of the search. Read-only.

Scope Scope Scope

Returns a String (string in C#) that specifies the scope of the specified search. Read-only.

SearchSubFolders SearchSubFolders 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 Session Session

Returns the NameSpace object for the current session. Read-only.

Tag Tag 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() GetTable() GetTable()

Obtains a Table object that contains items filtered by the Filter parameter in a preceding AdvancedSearch(String, Object, Object, Object) method call.

Save(String) Save(String) Save(String)

Saves the search results to a Search Folder.

Stop() Stop() Stop()

Immediately ends the search that is being performed currently.

Applies to