MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIAttribute
Open sandboxFocus

IAttribute Interface

Represent a custom attributes.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IAttribute : IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>, IAttributeData, IAspectPredecessor

Properties

Name Description
ContainingDeclaration

Gets the declaration that owns the custom attribute.

Methods

Name Description
ToRef()

Extension Methods

AspectPredecessorExtensions.GetRoots(IAspectPredecessor)
AttributeExtensions.Construct(IAttribute)
AttributeExtensions.Construct<T>(IAttribute)
AttributeExtensions.GetArgumentValue<T>(IAttribute, string, T?)
AttributeExtensions.ToAttributeConstruction(IAttribute)
AttributeExtensions.TryConstruct(IAttribute, ScopedDiagnosticSink, out Attribute?)
AttributeExtensions.TryConstruct(IAttribute, out Attribute?)
AttributeExtensions.TryGetArgumentValue<T>(IAttribute, string, out T)
AttributeExtensions.TryGetNamedArgument(IAttribute, string, out TypedConstant)
DeclarationExtensions.Enhancements<T>(T)
DeclarationExtensions.ForCompilation<T>(T?, ICompilation, ReferenceResolutionOptions)
DeclarationExtensions.TryForCompilation<T>(T?, ICompilation, out T?, ReferenceResolutionOptions)
MetricsExtensions.Metrics<TExtensible>(TExtensible)
DeclarationExtensions.ContainedChildren(IDeclaration)
DeclarationExtensions.ContainedDescendants(IDeclaration)
DeclarationExtensions.ContainedDescendantsAndSelf(IDeclaration)
DeclarationExtensions.ContainingAncestors(IDeclaration)
DeclarationExtensions.ContainingAncestorsAndSelf(IDeclaration)
DeclarationExtensions.GetClosestMemberOrNamedType(IDeclaration)
DeclarationExtensions.GetClosestNamedType(IDeclaration)
DeclarationExtensions.GetNamespace(IDeclaration)
DeclarationExtensions.GetTopmostNamedType(IDeclaration)
DeclarationExtensions.IsContainedIn(IDeclaration, IDeclaration)
GenericExtensions.GetOriginalDefinition(IDeclaration)
EligibilityExtensions.IsAdviceEligible(IDeclaration, AdviceKind)
EligibilityExtensions.IsAspectEligible(IDeclaration, Type, EligibleScenarios)
EligibilityExtensions.IsAspectEligible<T>(IDeclaration, EligibleScenarios)
EligibilityExtensions.IsContractAdviceEligible(IDeclaration, ContractDirection)

See Also