Partager via


_Application.IsSearchSynchronous Method

Returns a Boolean (bool in C#) indicating if a search will be synchronous or asynchronous.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function IsSearchSynchronous ( _
    LookInFolders As String _
) As Boolean
'Usage
Dim instance As _Application
Dim LookInFolders As String
Dim returnValue As Boolean

returnValue = instance.IsSearchSynchronous(LookInFolders)
[DispIdAttribute()]
bool IsSearchSynchronous(
    string LookInFolders
)

Parameters

  • LookInFolders
    Type: System.String

    The path name of the folders that the search will search through. You must enclose the folder path with single quotes.

Return Value

Type: System.Boolean
True if the search is synchronous; otherwise, False.

Remarks

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 order to get meaningful results from an asynchronous search, use the AdvancedSearchComplete event to notify you when the search has finished.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Outlook Namespace