UITestAction.IsParameterBound 属性

如果此操作可参数化,则获取或设置一个值,用于指示该操作是否绑定到测试参数。

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

语法

声明
Public Property IsParameterBound As Boolean
    Get
    Set
public bool IsParameterBound { get; set; }
public:
property bool IsParameterBound {
    bool get ();
    void set (bool value);
}
member IsParameterBound : bool with get, set
function get IsParameterBound () : boolean
function set IsParameterBound (value : boolean)

属性值

类型:System.Boolean
如果该操作绑定到测试参数,则为 true;否则为 false。

异常

异常 条件
NotSupportedException

IsParameterizable 属性为 false。 这意味着此操作不可参数化。

备注

设置该值会引发 PropertyChanged 事件。

.NET Framework 安全性

请参见

参考

UITestAction 类

Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

IsParameterizable

PropertyChanged