Open sandboxFocus

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