Udostępnij za pośrednictwem


TimeoutAttribute Constructors

Definition

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.

Applies to