ThreadingModel ThreadingModel ThreadingModel ThreadingModel ThreadingModel Enum

Definition

Specifies the threading model.

public : enum class ThreadingModel
enum class winrt::Windows::Foundation::Metadata::ThreadingModel : int32_t
public enum ThreadingModel
Public Enum ThreadingModel
var value = Windows.Foundation.Metadata.ThreadingModel.both;
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 3

Both single-threaded and multithreaded apartments.

InvalidThreading InvalidThreading InvalidThreading InvalidThreading InvalidThreading 0

No valid threading model applies.

MTA MTA MTA MTA MTA 2

Multithreaded apartment.

STA STA STA STA STA 1

Single-threaded apartment.

See also