Table of Contents

TCodeTypeMember.AddAttribute Method

Adds a custom attribute to this member.

Syntax

Unit: Bcl.Code.MetaClasses

function TCodeTypeMember.AddAttribute(const AttributeName: string): TCodeAttributeDeclaration;

Parameters

<-> Parameter Type Description
const AttributeName string The name of the attribute to add.

Returns

The created TCodeAttributeDeclaration instance.

See also