ThreadPoolOption Enum

Definition

Indicates the thread pool in which the work, submitted by Activity, runs.

C#
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum ThreadPoolOption
Inheritance
ThreadPoolOption
Attributes

Fields

Name Value Description
None 0

No thread pool is used. If this value is used to configure a ServiceConfig that is passed to an Activity, an exception is thrown.

Inherit 1

The same type of thread pool apartment as the caller's thread apartment is used.

STA 2

A single-threaded apartment (STA) is used.

MTA 3

A multithreaded apartment (MTA) is used.

Remarks

ThreadPoolOption is used for the value of ThreadPool.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 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