TimeoutAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |