Method RemoveDocument
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v10.dll
RemoveDocument(DocumentId)
Removes specified Microsoft.CodeAnalysis.Document from the project.
public virtual bool RemoveDocument(DocumentId documentId)
Parameters
documentIdDocumentIdMicrosoft.CodeAnalysis.DocumentIdto remove.
Returns
- bool
True if succeed; otherwise false.
RemoveDocument(string, ProjectId)
Removes specified document from the project.
public virtual bool RemoveDocument(string fileName, ProjectId projectId = null)
Parameters
fileNamestringFile path to remove.
projectIdProjectIdSpecifies project to search for the document.
Returns
- bool
True if succeed; otherwise false.