Share via


IsSearchSynchronous Method

Returns a Boolean indicating if a search will be synchronous or asynchronous. Read-only.

Note  If the search is synchronous, the AdvancedSearch method will not return until the search has completed. Conversely, if the search is asynchronous, the AdvancedSearch method will immediately return. In this case, use the Search object's Stop method to halt the search. In order to get meaningful results from an asynchronous search, use the AdvancedSearchComplete event to notify you when the search has finished.

expression.IsSearchSynchronous(LookInFolders)

*expression   * Required. An expression that returns an Application object.

LookInFolders   Required String. The path name of the folders that the search will search through. It is recommended that the folder name is enclosed within single quotes.

Applies to | Application Object

See Also | AdvancedSearch Method | AdvancedSearchComplete Event | AdvancedSearchStopped Event | IsSynchronous Property