API Browser

Method

OpenDocument

func OpenDocument(filePath: string, projectName: string? = null) -> DocumentId

Declaring type: AdhocWorkspace
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: AdhocWorkspace.cs

Opens a single document from filePath into the workspace. If a single project already exists, the document is added to it; otherwise a new project is created.

Parameters

Name Type Description
filePath String
projectName String?

Return value

DocumentId