共用方式為


Workspace.OpenDocument(DocumentId, Boolean) 方法

定義

在主環境中開啟指定的檔。

public virtual void OpenDocument (Microsoft.CodeAnalysis.DocumentId documentId, bool activate = true);
abstract member OpenDocument : Microsoft.CodeAnalysis.DocumentId * bool -> unit
override this.OpenDocument : Microsoft.CodeAnalysis.DocumentId * bool -> unit
Public Overridable Sub OpenDocument (documentId As DocumentId, Optional activate As Boolean = true)

參數

documentId
DocumentId
activate
Boolean

適用於