Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
An attribute is applied using an argument that is either a type parameter or is constructed using a type parameter.
Visual Basic and the .NET Framework do not currently support any combination of attributes and generic types. This means the following limitations apply:
An attribute cannot be a generic type or be declared within a generic type.
An attribute cannot inherit from a generic class, nor can a generic class inherit from an attribute.
When you apply an attribute, you cannot supply an argument that is any of the following:
A generic type,
A type constructed from a generic type,
A type parameter of a containing type, or
A type constructed from a type parameter of a containing type.
Error ID: BC32079
To correct this error
- Reconstruct the arguments supplied to the attribute so that they do not include any type parameters or any type constructed from a type parameter.
See Also
Concepts
Attributes Overview in Visual Basic