共用方式為


Solution.AddAdditionalDocument 方法

定義

多載

AddAdditionalDocument(DocumentInfo)
AddAdditionalDocument(DocumentId, String, SourceText, IEnumerable<String>, String)

使用更新的對應專案建立新的方案實例,以包含由其名稱和文字定義的新檔實例。

AddAdditionalDocument(DocumentId, String, String, IEnumerable<String>, String)

使用更新的對應專案建立新的方案實例,以包含由其名稱和文字定義的新檔實例。

AddAdditionalDocument(DocumentInfo)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
public:
 Microsoft::CodeAnalysis::Solution ^ AddAdditionalDocument(Microsoft::CodeAnalysis::DocumentInfo ^ documentInfo);
public Microsoft.CodeAnalysis.Solution AddAdditionalDocument (Microsoft.CodeAnalysis.DocumentInfo documentInfo);
member this.AddAdditionalDocument : Microsoft.CodeAnalysis.DocumentInfo -> Microsoft.CodeAnalysis.Solution
Public Function AddAdditionalDocument (documentInfo As DocumentInfo) As Solution

參數

documentInfo
DocumentInfo

傳回

適用於

AddAdditionalDocument(DocumentId, String, SourceText, IEnumerable<String>, String)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

使用更新的對應專案建立新的方案實例,以包含由其名稱和文字定義的新檔實例。

public Microsoft.CodeAnalysis.Solution AddAdditionalDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default);
public Microsoft.CodeAnalysis.Solution AddAdditionalDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default);
member this.AddAdditionalDocument : Microsoft.CodeAnalysis.DocumentId * string * Microsoft.CodeAnalysis.Text.SourceText * seq<string> * string -> Microsoft.CodeAnalysis.Solution
Public Function AddAdditionalDocument (documentId As DocumentId, name As String, text As SourceText, Optional folders As IEnumerable(Of String) = Nothing, Optional filePath As String = Nothing) As Solution

參數

documentId
DocumentId
name
String
text
SourceText
folders
IEnumerable<String>
filePath
String

傳回

適用於

AddAdditionalDocument(DocumentId, String, String, IEnumerable<String>, String)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

使用更新的對應專案建立新的方案實例,以包含由其名稱和文字定義的新檔實例。

public Microsoft.CodeAnalysis.Solution AddAdditionalDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, string text, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default);
public Microsoft.CodeAnalysis.Solution AddAdditionalDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, string text, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default);
member this.AddAdditionalDocument : Microsoft.CodeAnalysis.DocumentId * string * string * seq<string> * string -> Microsoft.CodeAnalysis.Solution
Public Function AddAdditionalDocument (documentId As DocumentId, name As String, text As String, Optional folders As IEnumerable(Of String) = Nothing, Optional filePath As String = Nothing) As Solution

參數

documentId
DocumentId
name
String
text
String
folders
IEnumerable<String>
filePath
String

傳回

適用於