Workspace.ApplyAnalyzerConfigDocumentAdded(DocumentInfo, SourceText) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Metode ini dipanggil selama TryApplyChanges(Solution) untuk menambahkan dokumen konfigurasi penganalisis baru ke proyek.
Ambil alih metode ini untuk mengimplementasikan kemampuan menambahkan dokumen konfigurasi penganalisis.
protected virtual void ApplyAnalyzerConfigDocumentAdded(Microsoft.CodeAnalysis.DocumentInfo info, Microsoft.CodeAnalysis.Text.SourceText text);
abstract member ApplyAnalyzerConfigDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo * Microsoft.CodeAnalysis.Text.SourceText -> unit
override this.ApplyAnalyzerConfigDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo * Microsoft.CodeAnalysis.Text.SourceText -> unit
Protected Overridable Sub ApplyAnalyzerConfigDocumentAdded (info As DocumentInfo, text As SourceText)
Parameter
- info
- DocumentInfo
- text
- SourceText