Method RemoveDocument
RemoveDocument(DocumentId)
When implemented by a class, removes specified Microsoft.CodeAnalysis.Document from the project.
bool RemoveDocument(DocumentId documentId)
Parameters
documentIdDocumentIdMicrosoft.CodeAnalysis.DocumentIdto 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
fileNamestringFile path to remove.
projectIdProjectIdSpecifies Project to search for the document.
Returns
- bool
True if succeed; otherwise false.