Share via


AdhocWorkspace.AddDocument Method

Definition

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

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

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