NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

5.1 Attribute classes

The declaration of an attribute class defines a new kind of attribute that can be placed on a declaration. A class that derives from System.Attribute is an attribute class. The attribute class must have a System.AttributeUsage attribute that declares what the attribute is valid on, whether it may be used multiple times in a declaration and whether it is inherited.

To be recognized by Visual Basic 7.0, the declaration of an attribute class is subject to the following additional restrictions:

A type is an attribute type if it is one of the following:

It is not an error to declare an attribute class in Visual Basic 7.0 that does not follow the rules outlined above. However, an attribute that violates any of the rules is not usable in an attribute section.