Lire en anglais

Partager via


RunInMTAAttribute Class

Definition

This attribute is used to mark a task class as explicitly not being required to run in the STA for COM.

C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class RunInMTAAttribute : Attribute
Inheritance
RunInMTAAttribute
Attributes

Constructors

RunInMTAAttribute()

Default constructor.

Applies to

Produit Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1