לקריאה באנגלית ערוך

שתף באמצעות


'<typename>' cannot be used as an attribute because it does not inherit from 'System.Attribute'

An attempt was made to use a class that is not derived from System.Attribute.

Error ID: BC31504

To correct this error

  1. Define custom attributes as classes that derive from System.Attribute by adding an Imports statement to the first line of code in the class.

See also