Solution.WithAnalyzerConfigDocumentText 方法

定义

重载

WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)

使用指定的分析器配置文档创建一个新的解决方案实例,以让文本加载程序提供文本。

WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)

使用指定的分析器配置文档创建新的解决方案实例,以便指定文本和版本。

WithAnalyzerConfigDocumentText(DocumentId, SourceText, 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

使用指定的分析器配置文档创建一个新的解决方案实例,以让文本加载程序提供文本。

public Microsoft.CodeAnalysis.Solution WithAnalyzerConfigDocumentText (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.PreservationMode mode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue);
member this.WithAnalyzerConfigDocumentText : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.PreservationMode -> Microsoft.CodeAnalysis.Solution
Public Function WithAnalyzerConfigDocumentText (documentId As DocumentId, text As SourceText, Optional mode As PreservationMode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue) As Solution

参数

documentId
DocumentId
text
SourceText

返回

适用于

WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, 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

使用指定的分析器配置文档创建新的解决方案实例,以便指定文本和版本。

public Microsoft.CodeAnalysis.Solution WithAnalyzerConfigDocumentText (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.TextAndVersion textAndVersion, Microsoft.CodeAnalysis.PreservationMode mode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue);
member this.WithAnalyzerConfigDocumentText : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.TextAndVersion * Microsoft.CodeAnalysis.PreservationMode -> Microsoft.CodeAnalysis.Solution
Public Function WithAnalyzerConfigDocumentText (documentId As DocumentId, textAndVersion As TextAndVersion, Optional mode As PreservationMode = Microsoft.CodeAnalysis.PreservationMode.PreserveValue) As Solution

参数

documentId
DocumentId
textAndVersion
TextAndVersion

返回

适用于