AnalyzerFileReference Class
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.
Represents analyzers stored in an analyzer assembly file.
public ref class AnalyzerFileReference sealed : Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference, IEquatable<Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^>
public sealed class AnalyzerFileReference : Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference, IEquatable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference>
type AnalyzerFileReference = class
inherit AnalyzerReference
interface IEquatable<AnalyzerReference>
Public NotInheritable Class AnalyzerFileReference
Inherits AnalyzerReference
Implements IEquatable(Of AnalyzerReference)
- Inheritance
- Implements
Remarks
Analyzer are read from the file, owned by the reference, and doesn't change since the reference is accessed until the reference object is garbage collected.
If you need to manage the lifetime of the analyzer reference (and the file stream) explicitly use AnalyzerImageReference.
Constructors
AnalyzerFileReference(String, IAnalyzerAssemblyLoader) |
Creates an AnalyzerFileReference with the given |
Properties
AssemblyLoader | |
Display | |
FullPath | |
Id |
Methods
Equals(AnalyzerFileReference) | |
Equals(AnalyzerReference) | |
Equals(Object) | |
GetAnalyzers(String) | |
GetAnalyzersForAllLanguages() | |
GetAssembly() | |
GetGenerators() | |
GetGenerators() |
Obsolete.
Gets all the source generators defined in this assembly reference. (Inherited from AnalyzerReference) |
GetGenerators(String) | |
GetGenerators(String) |
Gets all the generators defined in this assembly reference for the given |
GetGeneratorsForAllLanguages() | |
GetGeneratorsForAllLanguages() |
Gets all the source generators defined in this assembly reference. (Inherited from AnalyzerReference) |
GetHashCode() |
Events
AnalyzerLoadFailed |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈