Used to specify the time-out period of a unit test.
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := False)> _ Public NotInheritable Class TimeoutAttribute _ Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false)] public sealed class TimeoutAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = false)] public ref class TimeoutAttribute sealed : public Attribute
[<Sealed>] [<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false)>] type TimeoutAttribute = class inherit Attribute end
public final class TimeoutAttribute extends Attribute
The TimeoutAttribute type exposes the following members.
This is measured in milliseconds. This attribute can be specified on a test method. Only one instance of this attribute may be applied to a method.