CompilationWithAnalyzers.ClearAnalyzerState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This API is no longer required to be invoked. Analyzer state is automatically cleaned up when CompilationWithAnalyzers instance is released.
This method should be invoked when the analyzer host is disposing off the given analyzers
.
It clears the cached internal state (supported descriptors, registered actions, exception handlers, etc.) for analyzers.
public:
static void ClearAnalyzerState(System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^> analyzers);
[System.Obsolete("This API is no longer required to be invoked. Analyzer state is automatically cleaned up when CompilationWithAnalyzers instance is released.")]
public static void ClearAnalyzerState (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers);
[<System.Obsolete("This API is no longer required to be invoked. Analyzer state is automatically cleaned up when CompilationWithAnalyzers instance is released.")>]
static member ClearAnalyzerState : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> -> unit
Public Shared Sub ClearAnalyzerState (analyzers As ImmutableArray(Of DiagnosticAnalyzer))
Parameters
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Analyzers whose state needs to be cleared.
- Attributes
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET