Aspect that, when applied to a type or member, reports a warning whenever the target type or member is used from from any type specified by the Types, Namespaces, NamespaceOfTypes or CurrentNamespace properties.
Implements
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
public class CannotBeUsedFromAttribute : BaseUsageValidationAttribute, IConditionallyInheritableAspect, IAspect<IMemberOrNamedType>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IMemberOrNamedType>Constructors
| Name | Description |
|---|---|
| CannotBeUsedFromAttribute() |
Methods
| Name | Description |
|---|---|
| BuildAspect(IAspectBuilder<IMemberOrNamedType>) | Defines the aspect implementation by adding advice, child aspects, and validators to the target declaration. |
| BuildEligibility(IEligibilityBuilder<IMemberOrNamedType>) | Configures the eligibility of the aspect or attribute by defining rules that determine which declarations the aspect can be applied to. |