TimeoutAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TimeoutAttribute(TestTimeout) |
Initializes a new instance of the TimeoutAttribute class with a preset timeout |
TimeoutAttribute(Int32) |
Initializes a new instance of the TimeoutAttribute class. |
TimeoutAttribute(TestTimeout)
Initializes a new instance of the TimeoutAttribute class with a preset timeout
public:
TimeoutAttribute(Microsoft::VisualStudio::TestTools::UnitTesting::TestTimeout timeout);
public TimeoutAttribute (Microsoft.VisualStudio.TestTools.UnitTesting.TestTimeout timeout);
new Microsoft.VisualStudio.TestTools.UnitTesting.TimeoutAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestTimeout -> Microsoft.VisualStudio.TestTools.UnitTesting.TimeoutAttribute
Public Sub New (timeout As TestTimeout)
Parameters
- timeout
- TestTimeout
The timeout
Applies to
TimeoutAttribute(Int32)
Initializes a new instance of the TimeoutAttribute class.
public:
TimeoutAttribute(int timeout);
public TimeoutAttribute (int timeout);
new Microsoft.VisualStudio.TestTools.UnitTesting.TimeoutAttribute : int -> Microsoft.VisualStudio.TestTools.UnitTesting.TimeoutAttribute
Public Sub New (timeout As Integer)
Parameters
- timeout
- Int32
The timeout in milliseconds.