CustomAttributeIntroductionAspect Class |
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public sealed class CustomAttributeIntroductionAspect : ICustomAttributeIntroductionAspect, IAspect, IAspectBuildSemantics, IValidableAnnotation
The CustomAttributeIntroductionAspect type exposes the following members.
Name | Description | |
---|---|---|
CustomAttributeIntroductionAspect(CustomAttributeData) |
Initializes a new CustomAttributeIntroductionAspect by specifying a
CustomAttributeData.
| |
CustomAttributeIntroductionAspect(ObjectConstruction) |
Initializes a new CustomAttributeIntroductionAspect by specifying an ObjectConstruction.
|
Name | Description | |
---|---|---|
CustomAttribute |
Gets the construction of the custom attribute that must be applied to the target of this aspect.
|
There are two ways to specify a custom attribute: either using an ObjectConstruction (to construct a new custom attribute), either a CustomAttributeData (to copy a custom attribute reflected using one of the overload of the method GetCustomAttributes(Assembly)/
This aspect is not a custom attribute. You have to create another aspect implementing IAspectProvider and have the method ProvideAspects(Object) return instances of this aspect. |