Class RequiresThreadAttribute
Marks a test that must run on a separate thread.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class RequiresThreadAttribute : PropertyAttribute, IApplyToTest
- Inheritance
-
RequiresThreadAttribute
- Implements
- Inherited Members
Constructors
RequiresThreadAttribute()
Construct a RequiresThreadAttribute
public RequiresThreadAttribute()
RequiresThreadAttribute(ApartmentState)
Construct a RequiresThreadAttribute, specifying the apartment
public RequiresThreadAttribute(ApartmentState apartment)
Parameters
apartment
ApartmentState