Skip to content

Commit 9c774f9

Browse files
AaronRobinsonMSFTRon Petrusha
andcommitted
Update exceptions for Thread.TrySetApartmentState() (dotnet#2741)
* Update exceptions for `Thread.TrySetApartmentState()` * Update xml/System.Threading/Thread.xml Co-Authored-By: Ron Petrusha <ronpet@microsoft.com>
1 parent cf58517 commit 9c774f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/System.Threading/Thread.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3842,9 +3842,10 @@ When you call the `Suspend` method on a thread, the system notes that a thread s
38423842
38433843
]]></format>
38443844
</remarks>
3845+
<exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported on the macOS and Linux platforms.</exception>
38453846
<exception cref="T:System.ArgumentException">
38463847
<paramref name="state" /> is not a valid apartment state.</exception>
3847-
<exception cref="T:System.Threading.ThreadStateException">The thread has already been started.</exception>
3848+
<exception cref="T:System.Threading.ThreadStateException">The thread was started and has terminated, or the call is not being made from the thread's context while the thread is running.</exception>
38483849
</Docs>
38493850
</Member>
38503851
<MemberGroup MemberName="VolatileRead">

0 commit comments

Comments
 (0)