27 instantiations of 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 (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
867return new System.Threading.ThreadStateException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
261throw new ThreadStateException(SR.ThreadState_NotStarted);
System\Threading\Thread.NativeAot.cs (8)
141throw new ThreadStateException(SR.ThreadState_Dead_State); 149throw new ThreadStateException(SR.ThreadState_Dead_State); 181throw new ThreadStateException(SR.ThreadState_Dead_State); 189throw new ThreadStateException(SR.ThreadState_Dead_State); 228throw new ThreadStateException(SR.ThreadState_Dead_Priority); 248throw new ThreadStateException(SR.ThreadState_Dead_Priority); 256throw new ThreadStateException(SR.ThreadState_SetPriorityFailed); 362throw new ThreadStateException(SR.ThreadState_AlreadyStarted);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (2)
184throw new ThreadStateException(string.Format(SR.AXMTAThread, clsid)); 3285throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Control.cs (1)
10354throw new ThreadStateException(SR.ThreadMustBeSTA);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
161throw new ThreadStateException(SR.ThreadMustBeSTA); 205throw 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)); 1211throw 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);
12 references to ThreadStateException
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerProcessor.cs (1)
193catch (ThreadStateException) { }
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Ole\IOleServices.cs (1)
17/// <exception cref="ThreadStateException">Current thread is not in the right state for OLE.</exception>
mscorlib (1)
parent\ref\mscorlib.cs (1)
1182[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadStateException))]
netstandard (1)
netstandard.cs (1)
2145[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadStateException))]
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (4)
174/// <exception cref="ThreadStateException">The thread has already been started.</exception> 184/// <exception cref="ThreadStateException">The thread has already been started.</exception> 220/// <exception cref="ThreadStateException">The thread has already been started.</exception> 228/// <exception cref="ThreadStateException">The thread has already been started.</exception>
System.Private.Windows.Core (1)
System\Private\Windows\Ole\IOleServices.cs (1)
17/// <exception cref="ThreadStateException">Current thread is not in the right state for OLE.</exception>
System.Threading.Thread (1)
src\runtime\artifacts\obj\System.Threading.Thread\Release\net11.0\System.Threading.Thread.Forwards.cs (1)
16[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadStateException))]
System.Windows.Forms (2)
System\Windows\Forms\OLE\Clipboard.cs (2)
138/// <exception cref="ThreadStateException"> 253/// <exception cref="ThreadStateException">