Threading​Model Threading​Model Threading​Model Threading​Model Enum

Definition

Specifies the threading model.

public : enum class ThreadingModelpublic enum ThreadingModelPublic Enum ThreadingModel// You can use this enum in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Fields

Both Both Both Both

Both single-threaded and multithreaded apartments.

InvalidThreading InvalidThreading InvalidThreading InvalidThreading

No valid threading model applies.

MTA MTA MTA MTA

Multithreaded apartment.

STA STA STA STA

Single-threaded apartment.