Delen via


Workspace.CloseDocument(DocumentId) Method

Definition

Close the specified document in the host environment.

public:
 virtual void CloseDocument(Microsoft::CodeAnalysis::DocumentId ^ documentId);
public virtual void CloseDocument (Microsoft.CodeAnalysis.DocumentId documentId);
abstract member CloseDocument : Microsoft.CodeAnalysis.DocumentId -> unit
override this.CloseDocument : Microsoft.CodeAnalysis.DocumentId -> unit
Public Overridable Sub CloseDocument (documentId As DocumentId)

Parameters

documentId
DocumentId

Applies to