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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ExecutionTimeCondition Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace