Skip to content

Commit 1da5509

Browse files
committed
fix link text
1 parent 1935e02 commit 1da5509

File tree

5 files changed

+1125
-1127
lines changed

5 files changed

+1125
-1127
lines changed

xml/System.Threading.Tasks/Parallel.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
## Remarks
5353
The <xref:System.Threading.Tasks.Parallel> class provides library-based data parallel replacements for common operations such as for loops, for each loops, and execution of a set of statements.
5454
55-
56-
5755
## Examples
5856
This example demonstrates several approaches to implementing a parallel loop using multiple language constructs.
5957
@@ -64,7 +62,7 @@
6462
</remarks>
6563
<threadsafe>All public and protected members of <see cref="T:System.Threading.Tasks.Parallel" /> are thread-safe and may be used concurrently from multiple threads.</threadsafe>
6664
<related type="Article" href="/dotnet/standard/parallel-programming/data-parallelism-task-parallel-library">Data Parallelism (Task Parallel Library)</related>
67-
<related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for Parallel Programming with the .NET Core and .NET Standard</related>
65+
<related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for parallel programming with .NET</related>
6866
</Docs>
6967
<Members>
7068
<MemberGroup MemberName="For">

xml/System.Threading.Tasks/Task.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<related type="Article" href="/dotnet/standard/parallel-programming/task-parallel-library-tpl">Task Parallel Library (TPL)</related>
8787
<related type="Article" href="/dotnet/standard/asynchronous-programming-patterns/task-based-asynchronous-pattern-tap">Task-based asynchronous pattern (TAP) in .NET: Introduction and overview</related>
8888
<related type="Article" href="/dotnet/standard/parallel-programming/task-based-asynchronous-programming">Task-based Asynchronous Programming</related>
89-
<related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for Parallel Programming with the .NET Core and .NET Standard</related>
89+
<related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for parallel programming with .NET</related>
9090
</Docs>
9191
<Members>
9292
<MemberGroup MemberName=".ctor">
@@ -2948,7 +2948,7 @@ Task t Status: RanToCompletion, Result: 42
29482948
<format type="text/markdown"><![CDATA[
29492949

29502950
## Remarks
2951-
The <xref:System.Threading.Tasks.Task> class implements the <xref:System.IDisposable> interface because internally it uses resources that also implement <xref:System.IDisposable>. However, particularly if your app targets the .NET Framework 4.5 or later, there is no need to call <xref:System.Threading.Tasks.Task.Dispose%2A> unless performance or scalability testing indicates that, based on your usage patterns, your app's performance would be improved by disposing of tasks. For more information, see [Do I need to dispose of Tasks?](https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/) in the Parallel Programming with .NET blog.
2951+
The <xref:System.Threading.Tasks.Task> class implements the <xref:System.IDisposable> interface because internally it uses resources that also implement <xref:System.IDisposable>. However, particularly if your app targets .NET Framework 4.5 or later, there is no need to call <xref:System.Threading.Tasks.Task.Dispose%2A> unless performance or scalability testing indicates that, based on your usage patterns, your app's performance would be improved by disposing of tasks. For more information, see [Do I need to dispose of Tasks?](https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/) in the Parallel Programming with .NET blog.
29522952

29532953
]]></format>
29542954
</remarks>
@@ -3000,7 +3000,7 @@ Task t Status: RanToCompletion, Result: 42
30003000
<format type="text/markdown"><![CDATA[
30013001

30023002
## Remarks
3003-
The <xref:System.Threading.Tasks.Task> class implements the <xref:System.IDisposable> interface because internally it uses resources that also implement <xref:System.IDisposable>. However, particularly if your app targets the .NET Framework 4.5 or later, there is no need to call <xref:System.Threading.Tasks.Task.Dispose%2A> unless performance or scalability testing indicates that, based on your usage patterns, your app's performance would be improved by disposing of tasks. For more information, see [Do I need to dispose of Tasks?](https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/) in the Parallel Programming with .NET blog.
3003+
The <xref:System.Threading.Tasks.Task> class implements the <xref:System.IDisposable> interface because internally it uses resources that also implement <xref:System.IDisposable>. However, particularly if your app targets .NET Framework 4.5 or later, there is no need to call <xref:System.Threading.Tasks.Task.Dispose%2A> unless performance or scalability testing indicates that, based on your usage patterns, your app's performance would be improved by disposing of tasks. For more information, see [Do I need to dispose of Tasks?](https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/) in the Parallel Programming with .NET blog.
30043004

30053005
]]></format>
30063006
</remarks>
@@ -3121,7 +3121,7 @@ Task t Status: RanToCompletion, Result: 42
31213121
The most common use of this property is to create and start a new task in a single call to the <xref:System.Threading.Tasks.TaskFactory.StartNew%2A?displayProperty=nameWithType> method.
31223122

31233123
> [!NOTE]
3124-
> Starting with the .NET Framework 4.5, the <xref:System.Threading.Tasks.Task.Run%2A?displayProperty=nameWithType> method provides the easiest way to create a <xref:System.Threading.Tasks.Task> object with default configuration values.
3124+
> Starting with .NET Framework 4.5, the <xref:System.Threading.Tasks.Task.Run%2A?displayProperty=nameWithType> method provides the easiest way to create a <xref:System.Threading.Tasks.Task> object with default configuration values.
31253125

31263126
The following example uses the static <xref:System.Threading.Tasks.Task.Factory%2A> property to make two calls to the <xref:System.Threading.Tasks.TaskFactory.StartNew%2A?displayProperty=nameWithType> method. The first populates an array with the names of files in the user's MyDocuments directory, while the second populates an array with the names of subdirectories of the user's MyDocuments directory. It then calls the <xref:System.Threading.Tasks.TaskFactory.ContinueWhenAll%28System.Threading.Tasks.Task%5B%5D%2CSystem.Action%7BSystem.Threading.Tasks.Task%5B%5D%7D%29?displayProperty=nameWithType> method, which displays information about the number of files and directories in the two arrays after the first two tasks have completed execution.
31273127

xml/System.Threading.Tasks/TaskCreationOptions.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@
6969
## Remarks
7070
The <xref:System.Threading.Tasks.TaskCreationOptions> enumeration is used with the following methods:
7171
72-
- The <xref:System.Threading.Tasks.TaskFactory.%23ctor%2A> and <xref:System.Threading.Tasks.TaskFactory%601.%23ctor%2A> constructors with a `creationOptions` parameter, to specify the default options for tasks created by the task factory.
72+
- The <xref:System.Threading.Tasks.TaskFactory.%23ctor%2A> and <xref:System.Threading.Tasks.TaskFactory%601.%23ctor%2A> constructors with a `creationOptions` parameter, to specify the default options for tasks created by the task factory.
7373
74-
- The <xref:System.Threading.Tasks.Task.%23ctor%2A> and <xref:System.Threading.Tasks.Task%601.%23ctor%2A> constructors with a `creationOptions` parameter, to specify the options used to customize the task's behavior.
74+
- The <xref:System.Threading.Tasks.Task.%23ctor%2A> and <xref:System.Threading.Tasks.Task%601.%23ctor%2A> constructors with a `creationOptions` parameter, to specify the options used to customize the task's behavior.
7575
76-
- The <xref:System.Threading.Tasks.TaskFactory.StartNew%2A> and <xref:System.Threading.Tasks.TaskFactory%601.StartNew%2A> methods with a `creationOptions` parameter, to specify the options used to customize the task's behavior.
76+
- The <xref:System.Threading.Tasks.TaskFactory.StartNew%2A> and <xref:System.Threading.Tasks.TaskFactory%601.StartNew%2A> methods with a `creationOptions` parameter, to specify the options used to customize the task's behavior.
7777
78-
- The <xref:System.Threading.Tasks.TaskFactory.FromAsync%2A> and <xref:System.Threading.Tasks.TaskFactory%601.FromAsync%2A> methods with a `creationOptions` parameter, to specify the options used to customize the behavior of the task that executes an end method when a specified <xref:System.IAsyncResult> completes.
78+
- The <xref:System.Threading.Tasks.TaskFactory.FromAsync%2A> and <xref:System.Threading.Tasks.TaskFactory%601.FromAsync%2A> methods with a `creationOptions` parameter, to specify the options used to customize the behavior of the task that executes an end method when a specified <xref:System.IAsyncResult> completes.
7979
80-
- The <xref:System.Threading.Tasks.TaskCompletionSource%601.%23ctor%2A> constructors with a `creationOptions` parameter, to specify the options used to customize the behavior of the underlying task.
80+
- The <xref:System.Threading.Tasks.TaskCompletionSource%601.%23ctor%2A> constructors with a `creationOptions` parameter, to specify the options used to customize the behavior of the underlying task.
8181
8282
]]></format>
8383
</remarks>
84-
<related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for Parallel Programming with the .NET Core and .NET Standard</related>
84+
<related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for parallel programming with .NET</related>
8585
</Docs>
8686
<Members>
8787
<Member MemberName="AttachedToParent">

0 commit comments

Comments
 (0)