net10.0
namespace Microsoft.CodeAnalysis
{
    public abstract class Workspace : IDisposable
    {
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Obsolete("Use RegisterDocumentClosedHandler instead, which by default will no longer run on the UI thread.", false)]
        public event EventHandler<DocumentEventArgs!>! DocumentClosed;
    }
}
nuget.org
0.0 %
Reference this API
0.0 %
Subscribe to this event
0.0 %
Unsubscribe from this event
.NET
8.09.010.0
Information specific to net10.0
Assembly

Microsoft.CodeAnalysis.Workspaces , Version=5.0.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

Your project needs a package reference to Microsoft.CodeAnalysis.Workspaces.Common.

Package Microsoft.CodeAnalysis.Workspaces.Common (5.0.0) net9.0
Obsolete Use RegisterDocumentClosedHandler instead, which by default will no longer run on the UI thread.
Platform Restrictions

The event adder is supported on all platforms.

The event remover is supported on all platforms.

  • Built-in API
  • Package-provided API