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
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17