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