Share via


IDocumentService Interface

Definition

Provides functionality to work with documents.

public interface IDocumentService
type IDocumentService = interface
Public Interface IDocumentService

Methods

CloseDocumentAsync(Uri, SaveDocumentOption, CancellationToken)

Closes the document identified by moniker.

GetOpenDocumentAsync(Uri, CancellationToken)

Returns the open document corresponding to moniker.

GetOpenDocumentsAsync(CancellationToken)

Returns a collection of the documents that are currently open.

InitializeDocumentAsync(DocumentSnapshot, CancellationToken)

Ensures that a document snapshot is initialized and returns the latest snapshot. A document snapshot may be uninitialized if it is being lazy loaded such as documents in tabs that have not been made visible yet.

OpenDocumentAsync(Uri, CancellationToken)

Opens the document identified by moniker.

OpenDocumentAsync(Uri, OpenDocumentOptions, CancellationToken)

Opens the document identified by moniker.

SaveAllAsync(CancellationToken)

Saves all open documents that have unsaved changes.

SaveDocumentAsync(Uri, CancellationToken)

Saves the document identified by moniker.

SubscribeAsync(IDocumentEventsListener, String, CancellationToken)

Adds a listener for document events.

Applies to