Share via


ExecutionTimeCondition.ExecutionTime Property

Gets or sets the time that is required to execute the test.

Namespace:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions
Assembly:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)

Syntax

'Declaration
Public Property ExecutionTime As TimeSpan
'Usage
Dim instance As ExecutionTimeCondition
Dim value As TimeSpan

value = instance.ExecutionTime

instance.ExecutionTime = value
public TimeSpan ExecutionTime { get; set; }
public:
property TimeSpan ExecutionTime {
    TimeSpan get ();
    void set (TimeSpan value);
}
public function get ExecutionTime () : TimeSpan
public function set ExecutionTime (value : TimeSpan)

Property Value

Type: System.TimeSpan

Exceptions

Exception Condition
ArgumentException

If the value is less than the minimum execution time or greater than the maximum execution time as indicated by the TimeSpan.

By default, the minimum execution time is set to 0 hours, 0 minutes, and 0 seconds; the maximum execution time is set to 24 hours, 0 minutes, 0 seconds.

Permissions

See Also

Reference

ExecutionTimeCondition Class

ExecutionTimeCondition Members

Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace