GeneratorAttributeSyntaxContext Struct
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.
public readonly struct GeneratorAttributeSyntaxContext
type GeneratorAttributeSyntaxContext = struct
Public Structure GeneratorAttributeSyntaxContext
- Inheritance
-
GeneratorAttributeSyntaxContext
Attributes |
AttributeDatas for any matching attributes on TargetSymbol. Always non-empty. All these attributes will have an AttributeClass whose fully qualified name metadata name matches the name requested in ForAttributeWithMetadataName<T>(String, Func<SyntaxNode,CancellationToken,Boolean>, Func<GeneratorAttributeSyntaxContext,CancellationToken,T>). To get the entire list of attributes, use GetAttributes() on TargetSymbol. |
Semantic |
Semantic model for the file that TargetNode is contained within. |
Target |
The syntax node the attribute is attached to. For example, with |
Target |
The symbol that the attribute is attached to. For example, with |
Produkt | Versioner |
---|---|
Roslyn | 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: