Solution.AddDocument 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddDocument(DocumentId, String, SyntaxNode, IEnumerable<String>, String, Boolean, PreservationMode) |
创建一个新的解决方案实例,其中更新了相应的项目,以包含由其名称和根 SyntaxNode定义的新文档实例。 |
AddDocument(DocumentId, String, SourceText, IEnumerable<String>, String, Boolean) |
创建一个新的解决方案实例,其中更新了相应的项目,以包含由其名称和文本定义的新文档实例。 |
AddDocument(DocumentInfo) |
使用更新的相应项目创建新的解决方案实例,以包含文档信息定义的新文档实例。 |
AddDocument(DocumentId, String, TextLoader, IEnumerable<String>) |
创建一个新的解决方案实例,其中项目更新为包含指定参数的新文档。 |
AddDocument(DocumentId, String, String, IEnumerable<String>, String) |
创建一个新的解决方案实例,其中更新了相应的项目,以包含由其名称和文本定义的新文档实例。 |
AddDocument(DocumentId, String, SyntaxNode, IEnumerable<String>, String, Boolean, PreservationMode)
- 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
创建一个新的解决方案实例,其中更新了相应的项目,以包含由其名称和根 SyntaxNode定义的新文档实例。
public Microsoft.CodeAnalysis.Solution AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.SyntaxNode syntaxRoot, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default, bool isGenerated = false, Microsoft.CodeAnalysis.PreservationMode preservationMode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue);
public Microsoft.CodeAnalysis.Solution AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.SyntaxNode syntaxRoot, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default, bool isGenerated = false, Microsoft.CodeAnalysis.PreservationMode preservationMode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue);
member this.AddDocument : Microsoft.CodeAnalysis.DocumentId * string * Microsoft.CodeAnalysis.SyntaxNode * seq<string> * string * bool * Microsoft.CodeAnalysis.PreservationMode -> Microsoft.CodeAnalysis.Solution
Public Function AddDocument (documentId As DocumentId, name As String, syntaxRoot As SyntaxNode, Optional folders As IEnumerable(Of String) = Nothing, Optional filePath As String = Nothing, Optional isGenerated As Boolean = false, Optional preservationMode As PreservationMode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue) As Solution
参数
- documentId
- DocumentId
- name
- String
- syntaxRoot
- SyntaxNode
- folders
- IEnumerable<String>
- filePath
- String
- isGenerated
- Boolean
- preservationMode
- PreservationMode
返回
适用于
AddDocument(DocumentId, String, SourceText, IEnumerable<String>, String, Boolean)
- 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 AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default, bool isGenerated = false);
public Microsoft.CodeAnalysis.Solution AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default, bool isGenerated = false);
member this.AddDocument : Microsoft.CodeAnalysis.DocumentId * string * Microsoft.CodeAnalysis.Text.SourceText * seq<string> * string * bool -> Microsoft.CodeAnalysis.Solution
Public Function AddDocument (documentId As DocumentId, name As String, text As SourceText, Optional folders As IEnumerable(Of String) = Nothing, Optional filePath As String = Nothing, Optional isGenerated As Boolean = false) As Solution
参数
- documentId
- DocumentId
- name
- String
- text
- SourceText
- folders
- IEnumerable<String>
- filePath
- String
- isGenerated
- Boolean
返回
适用于
AddDocument(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 ^ AddDocument(Microsoft::CodeAnalysis::DocumentInfo ^ documentInfo);
public Microsoft.CodeAnalysis.Solution AddDocument (Microsoft.CodeAnalysis.DocumentInfo documentInfo);
member this.AddDocument : Microsoft.CodeAnalysis.DocumentInfo -> Microsoft.CodeAnalysis.Solution
Public Function AddDocument (documentInfo As DocumentInfo) As Solution
参数
- documentInfo
- DocumentInfo
返回
适用于
AddDocument(DocumentId, String, TextLoader, IEnumerable<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 AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.TextLoader loader, System.Collections.Generic.IEnumerable<string> folders = default);
public Microsoft.CodeAnalysis.Solution AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, Microsoft.CodeAnalysis.TextLoader loader, System.Collections.Generic.IEnumerable<string>? folders = default);
member this.AddDocument : Microsoft.CodeAnalysis.DocumentId * string * Microsoft.CodeAnalysis.TextLoader * seq<string> -> Microsoft.CodeAnalysis.Solution
Public Function AddDocument (documentId As DocumentId, name As String, loader As TextLoader, Optional folders As IEnumerable(Of String) = Nothing) As Solution
参数
- documentId
- DocumentId
- name
- String
- loader
- TextLoader
- folders
- IEnumerable<String>
返回
适用于
AddDocument(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 AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, string text, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default);
public Microsoft.CodeAnalysis.Solution AddDocument (Microsoft.CodeAnalysis.DocumentId documentId, string name, string text, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default);
member this.AddDocument : Microsoft.CodeAnalysis.DocumentId * string * string * seq<string> * string -> Microsoft.CodeAnalysis.Solution
Public Function AddDocument (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