TestResult.ErrorMessage 屬性

取得或設定最新的錯誤訊息。

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

語法

'宣告
<UserVisiblePropertyAttribute("{64600D7C-7361-4048-B6EF-5BF48D60D6F3}")> _
Public Property ErrorMessage As String
[UserVisiblePropertyAttribute("{64600D7C-7361-4048-B6EF-5BF48D60D6F3}")]
public string ErrorMessage { get; set; }
[UserVisiblePropertyAttribute(L"{64600D7C-7361-4048-B6EF-5BF48D60D6F3}")]
public:
property String^ ErrorMessage {
    String^ get ();
    void set (String^ value);
}
[<UserVisiblePropertyAttribute("{64600D7C-7361-4048-B6EF-5BF48D60D6F3}")>]
member ErrorMessage : string with get, set
function get ErrorMessage () : String
function set ErrorMessage (value : String)

屬性值

型別:System.String
最新的錯誤訊息。

.NET Framework 安全性

請參閱

參考

TestResult 類別

Microsoft.VisualStudio.TestTools.Common 命名空間