MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​AspectsCan­Only­Be­Used­From­Attribute
Open sandboxFocus

CanOnlyBeUsedFromAttribute Class

Aspect that, when applied to a type or member, reports a warning whenever the target type or member is used from a different type than the ones specified by the Types, Namespaces, NamespaceOfTypes or CurrentNamespace properties.

Inheritance
System.Object
CanOnlyBeUsedFromAttribute
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
public class CanOnlyBeUsedFromAttribute : BaseUsageValidationAttribute, IConditionallyInheritableAspect, IAspect<IMemberOrNamedType>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IMemberOrNamedType>

Constructors

Name Description
CanOnlyBeUsedFromAttribute()

Methods

Name Description
BuildAspect(IAspectBuilder<IMemberOrNamedType>)
BuildEligibility(IEligibilityBuilder<IMemberOrNamedType>)