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)
屬性值
類型:String
最新的錯誤訊息。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。