Summary

Attributes provide great flexibility in .NET development by giving you the ability to decorate your types and members with custom additional information that is stored in the assembly metadata. All custom attributes are public classes deriving from System.Attribute and can be applied to various programming elements, such as assemblies, classes, modules, methods, properties, and so on. When you code custom attributes, the Visual Basic language requires you to decorate them with the AttributeUsage attribute that provides specifications on targeted elements. When defining custom attributes, you can provide both required and optional parameters; the first ones are established in the constructor. All parameters refer to attribute information ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.