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
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
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
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

返回

适用于