共用方式為


ValidationAction.ExpectedValue 屬性

在衍生類別中實作時,會取得預期的屬性值。

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

語法

'宣告
Public Overridable Property ExpectedValue As String
public virtual string ExpectedValue { get; set; }
public:
virtual property String^ ExpectedValue {
    String^ get ();
    void set (String^ value);
}
abstract ExpectedValue : string with get, set
override ExpectedValue : string with get, set
function get ExpectedValue () : String
function set ExpectedValue (value : String)

屬性值

型別:System.String
string 形式的值。

備註

設定這個屬性會引發 PropertyChanged 事件。

.NET Framework 安全性

請參閱

參考

ValidationAction 類別

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

PropertyChanged