Lire en anglais

Partager via


RunInSTAAttribute Class

Definition

This attribute is used to mark a task class as being required to run in a Single Threaded Apartment for COM.

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

Constructors

RunInSTAAttribute()

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