Method FindDocument
- Namespace
 - Alternet.Syntax.Parsers.Roslyn.CodeCompletion
 
- Assembly
 - Alternet.Syntax.Parsers.Roslyn.v10.dll
 
FindDocument(Solution, ProjectId, string)
Gets Microsoft.CodeAnalysis.Document matches the given parameters.
public static Document FindDocument(Solution solution, ProjectId projectId, string fileName)
Parameters
solutionSolutionSpecifies Solution to search for the document.
projectIdProjectIdSpecifies Project to search for the document.
fileNamestringDocument file name.
Returns
- Document
 Found
Microsoft.CodeAnalysis.Documentobject.
FindDocument(string, ProjectId)
Gets Microsoft.CodeAnalysis.Document matches the given file path.
public Document FindDocument(string fileName, ProjectId projectId = null)
Parameters
fileNamestringFile path to find.
projectIdProjectIdSpecifies Project to search for the document.
Returns
- Document
 Found
Microsoft.CodeAnalysis.Documentobject.