PropertyExpressionCollection.Add 方法 (String, String)

使用提供的属性名和属性值向集合中添加一个属性表达式。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

语法

声明
Public Sub Add ( _
    propertyName As String, _
    propertyValue As String _
)
public void Add(
    string propertyName,
    string propertyValue
)
public:
void Add(
    String^ propertyName, 
    String^ propertyValue
)
member Add : 
        propertyName:string * 
        propertyValue:string -> unit 
public function Add(
    propertyName : String, 
    propertyValue : String
)

参数

备注

默认运算符是等号,这意味着具有给定名称属性的值与提供的属性的值相等。

.NET Framework 安全性

请参见

参考

PropertyExpressionCollection 类

Add 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间