The CUSTOM-ATTRIBUTE Clause
The CUSTOM-ATTRIBUTE clause specifies an attribute that provides metadata
(information) about a .NET native data item or a property that will be visible
using reflection.
General Format
CUSTOM-ATTRIBUTE IS class-name-1 [ ( {parameter-1} . . . ) ]
Syntax Rules
- The subject of the entry must be a .NET native data type as described in
.NET Native Types in the section .NET Concepts in the Language Fundamentals
chapter. This clause can also be used to describe classes, delegates, enumerations,
events, interfaces, methods, properties and valuetypes.
- Class-name-1 must be the name of a class specified in the Repository paragraph
of this source element.
- This list of parameters must match a constructor defined for class-name-1.
Each parameter-1 must be one of the following:
General Rules
- The custom attribute specified becomes part of the metadata describing the
subject of the entry and is visible to a reflector.