Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 3) C4580

Error Message

[attribute] is deprecated; instead specify System::Attribute as a base class

attribute is no longer the preferred syntax for creating user-defined attributes. For more information, see User-Defined Attributes.


The following sample generates C3454.

// C4580.cpp
// compile with: /W3 /c /clr
[attribute]   // C4580
public ref class Attr {
   int m_t;

public ref class Attr2 : System::Attribute {
   int m_t;

Community Additions

© 2015 Microsoft