Skip to content

JsonWorkspace.RegisterDocument Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonWorkspace.cs

RegisterDocument(IWorkspaceManagedDocument)

Registers a workspace-managed document so that it will be disposed when the workspace is disposed or reset. Use this for pooled documents (e.g., FixedJsonValueDocument) that are created outside of a builder but must participate in workspace lifecycle management.

public void RegisterDocument(IWorkspaceManagedDocument document)

Parameters

Name Type Description
document IWorkspaceManagedDocument The document to register.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue