Update CancellationToken.cs (#66399)
authorAaron Robinson <arobins@microsoft.com>
Wed, 9 Mar 2022 16:16:21 +0000 (11:16 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Mar 2022 16:16:21 +0000 (08:16 -0800)
Remove ObjectDisposedException from doc since the method doesn't throw the exception.

src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs

index f7d4f44..c08ce1a 100644 (file)
@@ -351,8 +351,6 @@ namespace System.Threading
         /// </code>
         /// </remarks>
         /// <exception cref="System.OperationCanceledException">The token has had cancellation requested.</exception>
-        /// <exception cref="System.ObjectDisposedException">The associated <see
-        /// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
         public void ThrowIfCancellationRequested()
         {
             if (IsCancellationRequested)