Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Threading
  3. CancellationTokenSource
  4. CancellationTokenSource(TimeSpan, TimeProvider)
  • CancellationTokenSource
    • CancellationTokenSource()
    • CancellationTokenSource(Int32)
    • CancellationTokenSource(TimeSpan)
    • CancellationTokenSource(TimeSpan, TimeProvider)
    • IsCancellationRequested
    • Token
    • Cancel()
    • Cancel(Boolean)
    • CancelAfter(Int32)
    • CancelAfter(TimeSpan)
    • CancelAsync()
    • CreateLinkedTokenSource(CancellationToken)
    • CreateLinkedTokenSource(CancellationToken[])
    • CreateLinkedTokenSource(CancellationToken, CancellationToken)
    • CreateLinkedTokenSource(ReadOnlySpan<CancellationToken>)
    • Dispose()
    • Dispose(Boolean)
    • TryReset()
    • CancelAfter(CancellationTokenSource, Int32)
    • CancelAfter(CancellationTokenSource, Int32)
    • CancelAfter(CancellationTokenSource, TimeSpan)
    • CancelAfter(CancellationTokenSource, TimeSpan)
net9.0
namespace System.Threading
{
    public class CancellationTokenSource : IDisposable
    {
        public CancellationTokenSource(TimeSpan delay, TimeProvider! timeProvider);
    }
}
nuget.org
0.9 %
Reference this API
.NET
8.09.0
Information specific to net9.0
Assembly

System.Runtime , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

10/13/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙