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
SolutionSpecifies Solution to search for the document.
projectId
ProjectIdSpecifies Project to search for the document.
fileName
stringDocument 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
stringFile path to find.
projectId
ProjectIdSpecifies Project to search for the document.
Returns
- Document
Found
Microsoft.CodeAnalysis.Document
object.