Workspace.RegisterTextDocumentClosedHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a handler that is fired when any TextDocument is closed in the editor.
public Microsoft.CodeAnalysis.WorkspaceEventRegistration RegisterTextDocumentClosedHandler(Action<Microsoft.CodeAnalysis.TextDocumentEventArgs> handler, Microsoft.CodeAnalysis.WorkspaceEventOptions? options = default);
member this.RegisterTextDocumentClosedHandler : Action<Microsoft.CodeAnalysis.TextDocumentEventArgs> * Nullable<Microsoft.CodeAnalysis.WorkspaceEventOptions> -> Microsoft.CodeAnalysis.WorkspaceEventRegistration
Public Function RegisterTextDocumentClosedHandler (handler As Action(Of TextDocumentEventArgs), Optional options As Nullable(Of WorkspaceEventOptions) = Nothing) As WorkspaceEventRegistration
Parameters
- handler
- Action<TextDocumentEventArgs>
- options
- Nullable<WorkspaceEventOptions>