CompilationWithAnalyzers.ClearAnalyzerState 메서드

정의

주의

This API is no longer required to be invoked. Analyzer state is automatically cleaned up when CompilationWithAnalyzers instance is released.

분석기 호스트가 지정된 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))

매개 변수

analyzers
ImmutableArray<DiagnosticAnalyzer>

상태를 지워야 하는 분석기입니다.

특성

적용 대상