使用提供的属性名和值初始化 PropertyExpression 类的新实例。
命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)
语法
声明
Public Sub New ( _
    propertyName As String, _
    propertyValue As String _
)
public PropertyExpression(
    string propertyName,
    string propertyValue
)
public:
PropertyExpression(
    String^ propertyName, 
    String^ propertyValue
)
new : 
        propertyName:string * 
        propertyValue:string -> PropertyExpression
public function PropertyExpression(
    propertyName : String, 
    propertyValue : String
)
参数
- propertyName
 类型:System.String
 要搜索的属性的名称。
- propertyValue
 类型:System.String
 属性的搜索值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。