共用方式為


AdhocWorkspace.AddDocument 方法

定義

多載

AddDocument(DocumentInfo)

將檔新增至工作區。

AddDocument(ProjectId, String, SourceText)

將檔新增至工作區。

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

將檔新增至工作區。

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

參數

documentInfo
DocumentInfo

傳回

適用於

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

將檔新增至工作區。

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

參數

projectId
ProjectId
name
String
text
SourceText

傳回

適用於