TimeoutAttribute TimeoutAttribute TimeoutAttribute Class

Definition

Timeout attribute; used to specify the timeout of a unit test.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class TimeoutAttribute : Attribute
type TimeoutAttribute = class
    inherit Attribute
Public NotInheritable Class TimeoutAttribute
Inherits Attribute
Inheritance
TimeoutAttributeTimeoutAttributeTimeoutAttribute
Attributes

Constructors

TimeoutAttribute(TestTimeout) TimeoutAttribute(TestTimeout) TimeoutAttribute(TestTimeout)

Initializes a new instance of the TimeoutAttribute class with a preset timeout

TimeoutAttribute(Int32) TimeoutAttribute(Int32) TimeoutAttribute(Int32)

Initializes a new instance of the TimeoutAttribute class.

Properties

Timeout Timeout Timeout

Gets the timeout.

Applies to