Workspace.CloseDocument(DocumentId) 方法

定义

关闭主机环境中的指定文档。

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)

参数

documentId
DocumentId

适用于