Condividi tramite


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: Int32

    The time-out period of a unit test. This is measured in milliseconds.

.NET Framework Security

See Also

Reference

TimeoutAttribute Class

TimeoutAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace