Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code­Fixes / ICode­Action­Builder / Add­Attribute­Async

Method AddAttributeAsync

AddAttributeAsync(IDeclaration, AttributeConstruction)

Adds a custom attribute to a given declaration.

Declaration
Task AddAttributeAsync(IDeclaration targetDeclaration, AttributeConstruction attribute)
Parameters
Type Name Description
IDeclaration targetDeclaration
AttributeConstruction attribute
Returns
Type Description
Task