MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsIntroduce­Attribute
Open sandboxFocus

IntroduceAttribute Class

Custom attribute that can be applied to any member of an aspect class and that means that this member must be introduced to the target class of the aspect.

Inheritance
IntroduceAttribute
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public sealed class IntroduceAttribute : DeclarativeAdviceAttribute, ITemplateAttribute, IAdviceAttribute

Constructors

Name Description
IntroduceAttribute()

Properties

Name Description
Accessibility
IsRequired
IsSealed
IsVirtual
Name
Scope
WhenExists

Gets or sets the implementation strategy (like Override, Fail or Ignore) when the member is already declared in the target type. The default value is Fail.

WhenInherited

Gets or sets the implementation strategy (like Override, Fail or Ignore) when the member is already declared in a parent class of the target type. The default value is Fail.

Methods

Name Description
BuildAdvice(IMemberOrNamedType, String, IAspectBuilder<IDeclaration>)
BuildAspectEligibility(IEligibilityBuilder<IDeclaration>, IMemberOrNamedType)

Explicit Interface Implementations

Name Description
ITemplateAttribute.Properties

See Also