TimeoutAttribute Class
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)]
public sealed class TimeoutAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type TimeoutAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type TimeoutAttribute = class
inherit Attribute
Public NotInheritable Class TimeoutAttribute
Inherits Attribute
- Inheritance
-
TimeoutAttribute
- Attributes
Timeout |
Initializes a new instance of the TimeoutAttribute class. |
Timeout |
Initializes a new instance of the TimeoutAttribute class with a preset timeout. |
Cooperative |
Gets or sets a value indicating whether the test method should be cooperatively canceled on timeout.
When set to |
Timeout |
Gets the timeout in milliseconds. |
Produit | Versions |
---|---|
MSTest.TestFramework | 1.1.18, 1.2.1, 1.3.2, 1.4.0, 2.2.0, 2.1.2, 2.2.10, 3.0.4, 3.1.1, 3.2.2, 3.3.1, 3.4.3, 3.5.1, 3.6.4, 3.7.3, 3.8.0 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :