PropertyTests 属性

       

返回一个 PropertyTests 集合,该集合代表一个文件查找过程的所有搜索条件。只读。

有关返回单个集合成员的详细信息,请参阅返回集合中的对象

示例

本示例可实现的功能为:显示属性测试集合中第一个属性测试过程的所有搜索条件。

With Application.FileSearch.PropertyTests(1)
myString = "This is the search criteria: " _
    & " The name is: " & .Name & ". The condition is: " _
    & .Condition
If .Value <> "" Then
    myString = myString & ". The value is: " & .Value
    If .SecondValue <> "" Then
        myString = myString _
            & ". The second value is: " _
            & .SecondValue & ", and the connector is" _
            & .Connector
    End If
End If
MsgBox myString
End With