TestResult.ErrorMessage Property

Gets or sets the most recent error message.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
<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)

Property Value

Type: String
The most recent error message.

.NET Framework Security

See Also

Reference

TestResult Class

Microsoft.VisualStudio.TestTools.Common Namespace