22 references to ThreadStateException
PresentationCore (5)
System\Windows\OleServicesContext.cs (5)
91throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 114throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 127throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 143throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 174throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA);
PresentationFramework (1)
System\Windows\Interop\ActiveXHost.cs (1)
85throw new ThreadStateException(SR.Format(SR.AxRequiresApartmentThread, clsid.ToString()));
System.Private.CoreLib (5)
src\System\Threading\Thread.CoreCLR.cs (5)
81throw new ThreadStateException(SR.Argument_InvalidHandle); 202throw new ThreadStateException(SR.ThreadState_Dead_State); 213throw new ThreadStateException(SR.ThreadState_Dead_State); 239throw new ThreadStateException(SR.ThreadState_Dead_State); 268throw new ThreadStateException(SR.ThreadState_Dead_Priority);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (2)
184throw new ThreadStateException(string.Format(SR.AXMTAThread, clsid)); 3288throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Control.cs (1)
9462throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
156throw new ThreadStateException(SR.ThreadMustBeSTA); 198throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
172throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
74throw new ThreadStateException(string.Format(SR.AXMTAThread, clsidString)); 1217throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
730throw new ThreadStateException(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
450throw new ThreadStateException(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
32throw new ThreadStateException(SR.ThreadMustBeSTA);