IsSearchSynchronous Method

Microsoft Outlook Visual Basic

IsSearchSynchronous Method

       

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

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.

Example

The following example uses a function to test whether or not a given path name will result in a synchronous search.

Function Synch(ByVal Foldername As String, ByRef App As Application) As Boolean
      Synch = App.IsSearchSynchronous("Inbox")
End Function