共用方式為


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

適用於