22 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 (5)
src\System\Threading\Thread.CoreCLR.cs (5)
81
throw new
ThreadStateException
(SR.Argument_InvalidHandle);
202
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
213
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
239
throw new
ThreadStateException
(SR.ThreadState_Dead_State);
268
throw new
ThreadStateException
(SR.ThreadState_Dead_Priority);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (2)
184
throw new
ThreadStateException
(string.Format(SR.AXMTAThread, clsid));
3288
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Control.cs (1)
9462
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
156
throw new
ThreadStateException
(SR.ThreadMustBeSTA);
198
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));
1217
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);