Skip to content

Fix link anchor in CA2016 page #30914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/fundamentals/code-analysis/quality-rules/ca2016.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This rule locates method invocations that could accept a <xref:System.Threading.
This rule analyzes method definitions that take a `CancellationToken` as their last parameter, then analyzes all methods invoked in its body. If any of the method invocations can either accept a `CancellationToken` as the last parameter, or have an overload that takes a `CancellationToken` as the last parameter, then the rule suggests using that option instead to ensure that the cancellation notification gets propagated to all operations that can listen to it.

> [!NOTE]
> Rule CA2016 is available in all .NET versions where the `CancellationToken` type is available. See [CancellationToken "Applies to" section](/dotnet/api/system.threading.cancellationtoken#moniker-applies-to)
> Rule CA2016 is available in all .NET versions where the `CancellationToken` type is available. For the applicable versions, see the [CancellationToken "Applies to" section](/dotnet/api/system.threading.cancellationtoken#applies-to).

## How to fix violations

Expand Down