26 references to ThreadStateException
PresentationCore (5)
System\Windows\OleServicesContext.cs (5)
91
throw new
ThreadStateException
(SR.OleServicesContext_ThreadMustBeSTA);
114
throw new
ThreadStateException
(SR.OleServicesContext_ThreadMustBeSTA);
127
throw new
ThreadStateException
(SR.OleServicesContext_ThreadMustBeSTA);
143
throw new
ThreadStateException
(SR.OleServicesContext_ThreadMustBeSTA);
174
throw new
ThreadStateException
(SR.OleServicesContext_ThreadMustBeSTA);
PresentationFramework (1)
System\Windows\Interop\ActiveXHost.cs (1)
85
throw new
ThreadStateException
(SR.Format(SR.AxRequiresApartmentThread, clsid.ToString()));
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
261
throw new
ThreadStateException
(SR.ThreadState_NotStarted);
System\Threading\Thread.NativeAot.cs (8)
141
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
149
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
181
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
189
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
228
throw new
ThreadStateException
(SR.ThreadState_Dead_Priority);
248
throw new
ThreadStateException
(SR.ThreadState_Dead_Priority);
256
throw new
ThreadStateException
(SR.ThreadState_SetPriorityFailed);
362
throw new
ThreadStateException
(SR.ThreadState_AlreadyStarted);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (2)
184
throw new
ThreadStateException
(string.Format(SR.AXMTAThread, clsid));
3285
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Control.cs (1)
10354
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
161
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
205
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
172
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
74
throw new
ThreadStateException
(string.Format(SR.AXMTAThread, clsidString));
1211
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
730
throw new
ThreadStateException
(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
450
throw new
ThreadStateException
(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
32
throw new
ThreadStateException
(SR.ThreadMustBeSTA);