Share via


TestResultMessage.Duration Property

Gets or sets the time that was spent to execute the associated test or test run.

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

Syntax

'Declaration
<UserVisiblePropertyAttribute("{F4B15960-1C11-46ce-8D5F-29D89E484CF7}")> _
Public Property Duration As TimeSpan
[UserVisiblePropertyAttribute("{F4B15960-1C11-46ce-8D5F-29D89E484CF7}")]
public TimeSpan Duration { get; set; }
[UserVisiblePropertyAttribute(L"{F4B15960-1C11-46ce-8D5F-29D89E484CF7}")]
public:
property TimeSpan Duration {
    TimeSpan get ();
    void set (TimeSpan value);
}
[<UserVisiblePropertyAttribute("{F4B15960-1C11-46ce-8D5F-29D89E484CF7}")>]
member Duration : TimeSpan with get, set
function get Duration () : TimeSpan 
function set Duration (value : TimeSpan)

Property Value

Type: TimeSpan
The time that was spent to execute the test or test run.

.NET Framework Security

See Also

Reference

TestResultMessage Class

Microsoft.VisualStudio.TestTools.Common Namespace

TimeSpan