May 2010
Intermediate to advanced
1272 pages
61h 18m
English
The previous subsection discussed the definition of a custom attribute for assigning metadata to a class representing a basic text document. Code in Listing 48.2 implements the related Document class that is decorated with the DocumentPropertiesAttribute.
Listing 48.2 Applying Custom Attributes

When you apply an attribute, you can shorten its name by excluding the Attribute word in the identifier. For example, DocumentPropertiesAttribute can be shortened as DocumentProperties. The Visual Basic compiler correctly recognizes the identifier of an attribute. Then you must provide required arguments, respecting the data type. ...
Read now
Unlock full access