_Explorer.Search(String, OlSearchScope) Method
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.
Performs a Microsoft Instant Search on the current folder displayed in the Explorer using the given Query
.
public:
void Search(System::String ^ Query, Microsoft::Office::Interop::Outlook::OlSearchScope SearchScope);
public void Search (string Query, Microsoft.Office.Interop.Outlook.OlSearchScope SearchScope);
Public Sub Search (Query As String, SearchScope As OlSearchScope)
Parameters
- Query
- String
A search string that can contain any valid keywords supported in Instant Search.
- SearchScope
- OlSearchScope
Specifies the scope in terms of folders for the 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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應