Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

_Explorer.Search method

Performs a Microsoft Instant Search on the current folder displayed in the Explorer using the given Query.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

[DispIdAttribute()]
void Search(
	string Query,
	OlSearchScope SearchScope
)

Parameters

Query
Type: System.String

A search string that can contain any valid keywords supported in Instant Search.

SearchScope
Type: Microsoft.Office.Interop.Outlook.OlSearchScope

Specifies the scope in terms of folders for the search.

The functionality of Explorer.Search is analogous to the Search button in Instant Search. It behaves as if the user has typed the query string in the Instant Search user interface and then clicked Search. When calling Search, the query is run in the user interface, and there is no programmatic mechanism to obtain the search results. For more information on Instant Search, query for "Instant Search" in the Outlook Help.

The Search method does not provide a callback to enable the developer to determine when the search is complete.

Show:
© 2015 Microsoft