Method AddDocument
AddDocument(string, string)
When implemented by a class, adds a new document or replaces existing document with specified settings.
DocumentId AddDocument(string file, string text)
Parameters
file
stringFile name of the
Microsoft.CodeAnalysis.Document
.text
stringNew
Microsoft.CodeAnalysis.Document
text.
Returns
AddDocument(string, SourceText)
When implemented by a class, adds a new document or replaces existing document with specified settings.
DocumentId AddDocument(string file, SourceText text)
Parameters
file
stringFile name of the
Microsoft.CodeAnalysis.Document
.text
SourceTextNew
Microsoft.CodeAnalysis.Document
text.
Returns
- DocumentId
Microsoft.CodeAnalysis.DocumentId
to be added.