Open sandboxFocus

Class LocationLevelAspect

In Metalama, use FieldOrPropertyAspect.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[MulticastAttributeUsage(MulticastTargets.Field|MulticastTargets.Property|MulticastTargets.Parameter|MulticastTargets.ReturnValue, AllowMultiple = true)]
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Parameter|AttributeTargets.ReturnValue, AllowMultiple = true)]
[Obsolete("In Metalama, use 'FieldOrPropertyAspect'.", false)]
public abstract class LocationLevelAspect : Aspect, ILocationLevelAspect, IAspect, ILocationLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation

Constructors

Name Description
LocationLevelAspect()

Methods

Name Description
CompileTimeInitialize(LocationInfo, AspectInfo)

In Metalama, aspect initialization is done in BuildAspect(IAspectBuilder<T>).

CompileTimeValidate(LocationInfo)

In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>). The equivalent of returning false is to call SkipAspect().

CompileTimeValidate(object)

In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>). The equivalent of returning false is to call SkipAspect().

RuntimeInitialize(LocationInfo)

In Metalama, add an initializer from the BuildAspect(IAspectBuilder<IFieldOrProperty>) method by calling builder.Advice.AddInitializer(INamedType, string, InitializerKind, object?, object?).

SetAspectConfiguration(AspectConfiguration, LocationInfo)

Not supported in Metalama.

SetAspectConfiguration(AspectConfiguration, object)

Not supported in Metalama.