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
filestringFile name of the
Microsoft.CodeAnalysis.Document.textstringNew
Microsoft.CodeAnalysis.Documenttext.
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
filestringFile name of the
Microsoft.CodeAnalysis.Document.textSourceTextNew
Microsoft.CodeAnalysis.Documenttext.
Returns
- DocumentId
Microsoft.CodeAnalysis.DocumentIdto be added.