PostSharp//API Reference/Post­Sharp.​Aspects/Custom­Attribute­Introduction­Aspect/Custom­Attribute­Introduction­Aspect
Open sandboxFocus

Constructor CustomAttributeIntroductionAspect

CustomAttributeIntroductionAspect(ObjectConstruction)

Initializes a new CustomAttributeIntroductionAspect by specifying an ObjectConstruction.

Declaration
public CustomAttributeIntroductionAspect(ObjectConstruction attribute)
Parameters
Type Name Description
ObjectConstruction attribute

Construction of the custom attribute to be added to the target.

CustomAttributeIntroductionAspect(CustomAttributeData)

Initializes a new CustomAttributeIntroductionAspect by specifying a CustomAttributeData.

Declaration
public CustomAttributeIntroductionAspect(CustomAttributeData customAttributeData)
Parameters
Type Name Description
CustomAttributeData customAttributeData

Construction of the custom attribute to be added to the target.