TimeoutAttribute Constructor (Int32)
Initializes a new instance of the TimeoutAttribute class.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
timeout As Integer _
)
public TimeoutAttribute(
int timeout
)
public:
TimeoutAttribute(
int timeout
)
new :
timeout:int -> TimeoutAttribute
public function TimeoutAttribute(
timeout : int
)
Parameters
timeout
Type: Int32The time-out period of a unit test. This is measured in milliseconds.
.NET Framework Security
- 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.