July 2015
Intermediate to advanced
1300 pages
87h 27m
English
According to the particular nature of your custom attributes, you can decide whether multiple instances can be applied to programming elements. This is accomplished by setting the AllowMultiple property as True in the AttributeUsage. The following is an example:
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Property, AllowMultiple:=True)>Public Class DocumentPropertiesAttribute Inherits Attribute
AllowMultiple is optional and thus is invoked as a named parameter. The following is an example of how you apply multiple instances of an attribute:
<DocumentProperties("Alessandro Del Sole", "Stephen Green")> ...
Read now
Unlock full access