Solution.WithAnalyzerConfigDocumentText 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
使用指定的分析器組態檔建立新的解決方案實例,以讓文字載入器提供的文字。
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
- mode
- PreservationMode
傳回
適用於
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
使用指定的分析器組態檔,建立新的解決方案實例,以指定文字和版本。
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
- mode
- PreservationMode