共用方式為


UITestAction.IsParameterBound 屬性

如果這個動作可以參數化,則會取得或設定值,這個值表示動作是否繫結至測試參數。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Common
組件:  Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

語法

'宣告
Public Property IsParameterBound As Boolean
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