Class RequiresMTAAttribute
Marks a test that must run in the MTA, causing it to run in a separate thread if necessary.
On methods, you may also use MTAThreadAttribute to serve the same purpose.
[Obsolete("Use ApartmentAttribute and pass in ApartmentState.MTA instead")]
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class RequiresMTAAttribute : PropertyAttribute, IApplyToTest
- Inheritance
-
RequiresMTAAttribute
- Implements
- Inherited Members
Constructors
RequiresMTAAttribute()
Construct a RequiresMTAAttribute
public RequiresMTAAttribute()