Megosztás a következőn keresztül:


ThreadingModel Enum

Definition

Specifies the threading model.

public enum class ThreadingModel
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
enum class ThreadingModel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public enum ThreadingModel
var value = Windows.Foundation.Metadata.ThreadingModel.sTA
Public Enum ThreadingModel
Inheritance
ThreadingModel
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Fields

Name Value Description
InvalidThreading 0

No valid threading model applies.

STA 1

Single-threaded apartment.

MTA 2

Multithreaded apartment.

Both 3

Both single-threaded and multithreaded apartments.

Applies to

See also