Skip to content

Commit 1c81e4b

Browse files
authored
Update Thread.Name documentation (#9350)
1 parent 87040b1 commit 1c81e4b

File tree

7 files changed

+3
-102
lines changed

7 files changed

+3
-102
lines changed

snippets/cpp/VS_Snippets_CLR_System/system.Threading.Thread.Name/CPP/source.cpp

Lines changed: 0 additions & 21 deletions
This file was deleted.

snippets/csharp/System.Threading/Thread/Name/Project.csproj

Lines changed: 0 additions & 8 deletions
This file was deleted.

snippets/csharp/System.Threading/Thread/Name/source.cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

snippets/fsharp/System.Threading/Thread/Name/fs.fsproj

Lines changed: 0 additions & 10 deletions
This file was deleted.

snippets/fsharp/System.Threading/Thread/Name/source.fs

Lines changed: 0 additions & 10 deletions
This file was deleted.

snippets/visualbasic/VS_Snippets_CLR_System/system.Threading.Thread.Name/VB/source.vb

Lines changed: 0 additions & 20 deletions
This file was deleted.

xml/System.Threading/Thread.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,21 +3053,13 @@ The value is not guaranteed to be a zero-based processor number.
30533053
<format type="text/markdown"><![CDATA[
30543054
30553055
## Remarks
3056-
This property is write-once. Because the default value of a thread's <xref:System.Threading.Thread.Name%2A> property is `null`, you can determine whether a name has already been explicitly assigned to the thread by comparing it with `null`.
3057-
3056+
In .NET 5 and earlier versions, this property is write-once. In these versions, because the default value of a thread's <xref:System.Threading.Thread.Name%2A> property is `null`, you can determine whether a name has already been explicitly assigned to the thread by comparing it with `null`.
3057+
30583058
The string assigned to the <xref:System.Threading.Thread.Name%2A> property can include any Unicode character.
30593059
3060-
## Examples
3061-
The following example shows how to name a thread.
3062-
3063-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.Threading.Thread.Name/CPP/source.cpp" id="Snippet1":::
3064-
:::code language="csharp" source="~/snippets/csharp/System.Threading/Thread/Name/source.cs" id="Snippet1":::
3065-
:::code language="fsharp" source="~/snippets/fsharp/System.Threading/Thread/Name/source.fs" id="Snippet1":::
3066-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Threading.Thread.Name/VB/source.vb" id="Snippet1":::
3067-
30683060
]]></format>
30693061
</remarks>
3070-
<exception cref="T:System.InvalidOperationException">A set operation was requested, but the <see langword="Name" /> property has already been set.</exception>
3062+
<exception cref="T:System.InvalidOperationException">.NET 5 and earlier versions only: A set operation was requested, but the <see langword="Name" /> property has already been set.</exception>
30713063
</Docs>
30723064
</Member>
30733065
<Member MemberName="Priority">

0 commit comments

Comments
 (0)