Method ReplaceDocument
ReplaceDocument(DocumentId, string)
When implemented by a class, adds a new document or replaces existing document with specified settings.
bool ReplaceDocument(DocumentId documentId, string text)
Parameters
documentIdDocumentIdId of the
Microsoft.CodeAnalysis.Document.textstringNew
Microsoft.CodeAnalysis.Documenttext.
Returns
- bool
True if document has been updated; otherwise false.
ReplaceDocument(DocumentId, SourceText)
When implemented by a class, adds a new document or replaces existing document with specified settings.
bool ReplaceDocument(DocumentId documentId, SourceText text)
Parameters
documentIdDocumentIdId of the
Microsoft.CodeAnalysis.Document.textSourceTextNew
Microsoft.CodeAnalysis.Documenttext.
Returns
- bool
True if document has been updated; otherwise false.