In Metalama, use FieldOrPropertyAspect.
Inheritance
Implements
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 |
CompileTimeValidate(object) | In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>).
The equivalent of returning |
RuntimeInitialize(LocationInfo) | In Metalama, add an initializer from the BuildAspect(IAspectBuilder<IFieldOrProperty>) method by calling
|
SetAspectConfiguration(AspectConfiguration, LocationInfo) | Not supported in Metalama. |
SetAspectConfiguration(AspectConfiguration, object) | Not supported in Metalama. |