AdhocWorkspace.AddDocument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddDocument(DocumentInfo) |
Adds a document to the workspace. |
AddDocument(ProjectId, String, SourceText) |
Adds a document to the workspace. |
AddDocument(DocumentInfo)
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
Adds a document to the workspace.
public:
Microsoft::CodeAnalysis::Document ^ AddDocument(Microsoft::CodeAnalysis::DocumentInfo ^ documentInfo);
public Microsoft.CodeAnalysis.Document AddDocument (Microsoft.CodeAnalysis.DocumentInfo documentInfo);
member this.AddDocument : Microsoft.CodeAnalysis.DocumentInfo -> Microsoft.CodeAnalysis.Document
Public Function AddDocument (documentInfo As DocumentInfo) As Document
Parameters
- documentInfo
- DocumentInfo
Returns
Applies to
AddDocument(ProjectId, String, SourceText)
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
- Source:
- AdhocWorkspace.cs
Adds a document to the workspace.
public:
Microsoft::CodeAnalysis::Document ^ AddDocument(Microsoft::CodeAnalysis::ProjectId ^ projectId, System::String ^ name, Microsoft::CodeAnalysis::Text::SourceText ^ text);
public Microsoft.CodeAnalysis.Document AddDocument (Microsoft.CodeAnalysis.ProjectId projectId, string name, Microsoft.CodeAnalysis.Text.SourceText text);
member this.AddDocument : Microsoft.CodeAnalysis.ProjectId * string * Microsoft.CodeAnalysis.Text.SourceText -> Microsoft.CodeAnalysis.Document
Public Function AddDocument (projectId As ProjectId, name As String, text As SourceText) As Document
Parameters
- projectId
- ProjectId
- name
- String
- text
- SourceText
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.