_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)

Syntax

'Declaration
Sub Search ( _
    Query As String, _
    SearchScope As OlSearchScope _
)
'Usage
Dim instance As _Explorer
Dim Query As String
Dim SearchScope As OlSearchScope

instance.Search(Query, SearchScope)
void Search(
    string Query,
    OlSearchScope SearchScope
)

Parameters

  • Query
    Type: System.String
    A search string that can contain any valid keywords supported in Instant Search.

Remarks

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.

See Also

Reference

_Explorer Interface

_Explorer Members

Microsoft.Office.Interop.Outlook Namespace