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

适用于