返回 Boolean 类型值,指出搜索是同步还是异步。
expression.IsSearchSynchronous(LookInFolders)
expression 必选。该表达式返回 Application 对象。
LookInFolders 必选,String 类型。该搜索将搜索的文件夹的路径名。
以下示例使用函数测试指定路径名是否会导致同步搜索。
Function Synch(ByVal Foldername As String, ByRef App As Application) As Boolean
Synch = App.IsSearchSynchronous("Inbox")
End Function