Aracılığıyla paylaş


TimeoutAttribute Class

Definition

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

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

Constructors

TimeoutAttribute(Int32)

Initializes a new instance of the TimeoutAttribute class.

TimeoutAttribute(TestTimeout)

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

Properties

Timeout

Gets the timeout in milliseconds.

Applies to