Table of Contents

Method FindDocument

Namespace
Alternet.Syntax.Parsers.Roslyn.CodeCompletion
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

FindDocument(Solution, ProjectId, string)

Gets Microsoft.CodeAnalysis.Document matches the given parameters.

public static Document FindDocument(Solution solution, ProjectId projectId, string fileName)

Parameters

solution Solution

Specifies Solution to search for the document.

projectId ProjectId

Specifies Project to search for the document.

fileName string

Document file name.

Returns

Document

Found Microsoft.CodeAnalysis.Document object.

FindDocument(string, ProjectId)

Gets Microsoft.CodeAnalysis.Document matches the given file path.

public Document FindDocument(string fileName, ProjectId projectId = null)

Parameters

fileName string

File path to find.

projectId ProjectId

Specifies Project to search for the document.

Returns

Document

Found Microsoft.CodeAnalysis.Document object.