Project.AddAnalyzerConfigDocument 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在此项目的新实例中创建新的分析器配置文档。
public Microsoft.CodeAnalysis.TextDocument AddAnalyzerConfigDocument (string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string>? folders = default, string? filePath = default);
public Microsoft.CodeAnalysis.TextDocument AddAnalyzerConfigDocument (string name, Microsoft.CodeAnalysis.Text.SourceText text, System.Collections.Generic.IEnumerable<string> folders = default, string filePath = default);
member this.AddAnalyzerConfigDocument : string * Microsoft.CodeAnalysis.Text.SourceText * seq<string> * string -> Microsoft.CodeAnalysis.TextDocument
Public Function AddAnalyzerConfigDocument (name As String, text As SourceText, Optional folders As IEnumerable(Of String) = Nothing, Optional filePath As String = Nothing) As TextDocument
参数
- name
- String
- text
- SourceText
- folders
- IEnumerable<String>
- filePath
- String