Method RemoveDocument
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v9.dll
RemoveDocument(DocumentId)
Removes specified Microsoft.CodeAnalysis.Document
from the project.
public virtual bool RemoveDocument(DocumentId documentId)
Parameters
documentId
DocumentIdMicrosoft.CodeAnalysis.DocumentId
to 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
fileName
stringFile path to remove.
projectId
ProjectIdSpecifies project to search for the document.
Returns
- bool
True if succeed; otherwise false.