Method RemoveDocument
RemoveDocument(DocumentId)
When implemented by a class, removes specified Microsoft.CodeAnalysis.Document
from the project.
bool RemoveDocument(DocumentId documentId)
Parameters
documentId
DocumentIdMicrosoft.CodeAnalysis.DocumentId
to remove.
Returns
- bool
True if succeed; otherwise false.
RemoveDocument(string, ProjectId)
When implemented by a class, removes specified document from the project.
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.