| File: System\Threading\Channels\ChannelClosedException.netstandard21.cs | Web Access |
| Project: src\runtime\src\libraries\System.Threading.Channels\src\System.Threading.Channels.csproj (System.Threading.Channels) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #if NET using System.ComponentModel; #endif using System.Runtime.Serialization; namespace System.Threading.Channels { /// <summary>Exception thrown when a channel is used after it's been closed.</summary> [Serializable] public partial class ChannelClosedException : InvalidOperationException { /// <summary>Initializes a new instance of the <see cref="ChannelClosedException"/> class with serialized data.</summary> /// <param name="info">The object that holds the serialized object data.</param> /// <param name="context">The contextual information about the source or destination.</param> #if NET [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)] [EditorBrowsable(EditorBrowsableState.Never)] #endif protected ChannelClosedException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }