Method ReplaceDocument
ReplaceDocument(DocumentId, string)
When implemented by a class, updates Microsoft.CodeAnalysis.Document
to have the text specified.
bool ReplaceDocument(DocumentId documentId, string text)
Parameters
documentId
DocumentIdMicrosoft.CodeAnalysis.Document
text
stringNew
Microsoft.CodeAnalysis.Document
text.
Returns
- bool
True if document has been replaced, otherwise false.
ReplaceDocument(DocumentId, SourceText)
When implemented by a class, updates Microsoft.CodeAnalysis.Document
to have the text specified.
bool ReplaceDocument(DocumentId documentId, SourceText text)
Parameters
documentId
DocumentIdMicrosoft.CodeAnalysis.Document
text
SourceTextNew
Microsoft.CodeAnalysis.DocumentId
text.
Returns
- bool
True if document has been replaced, otherwise false.